[cairo] unable to render text

Hakki Dogusan dogusanh at tr.net
Wed Mar 19 06:24:15 PDT 2008


Hi,

Mehmet Kovacioglu yazmış:
> thanks for the quick reply,
> here's the code:
> 
[snip some code]
> 
>     cairo_set_source_rgb (cr, 1.0, 0.0, 0.0);
>     cairo_select_font_face (cr, "sansserif",
>                 CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);

Did you try another font name, ie: "Sans" ?

>     cairo_set_font_size (cr, 22);
>     cairo_text_extents (cr, "ABC", &te);
>     cairo_show_text (cr, "ABC");
>   
[snip remaining code]


--
Regards,
Hakki Dogusan


More information about the cairo mailing list