[cairo] font face in cairo-wrapper for php

Fan Zhang fz at chinasoft.dk
Wed Mar 18 02:28:23 PDT 2009


Hi,

Does anyone know how to use
void *cairo_select_font_face* ( resource cr, string fontname, int slant, 
int weight )
for loading local fonts?

i've tried to do
cairo_select_font_face ($this->cr, arialbold.ttf,
            CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);

and arialbold.ttf is in the same path of the php file, but it won't work.

If cairo-wrapper only use the system font, where can i add new fonts? 
I'm using fedora and cairo is installed from YUM.

Thanks


More information about the cairo mailing list