[cairo] Changing font name has no effect

Eric Feillant eric.feillant at live-media.fr
Thu Jan 27 12:44:25 UTC 2022


Hi,

Still using show_text to display some text strings i don't see any 
effect when changing the font name :

cairo_select_font_face(cr, "monospace", 
CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD);

Here if i change "monospace" to "serif", "sans", etc ... there's no 
change on srceen.

I compile my program with these flags :

-lfontconfig -lfreetype -lm  -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lcairo


I use a cross compiler for amrhf target on ubuntu 20 x64.

What could i verify ? pkgconfig ? what else ?

Thanks to all of you for your help, it's a small problem taking too much 
time ...


Eric


-- 
signature
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20220127/27063213/attachment.htm>


More information about the cairo mailing list