'changing font family name don't take effect
When changing the font family name (monospace,serif,etc ..)in cairo for cairo_show_text there is no effect. The text string does not change. I use a cross compiler for ARM target on a X64 linux platform. Here's the code i use to select a font and show a text:
cairo_select_font_face(cr, "monospace", CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size(cr, 7.0);
cairo_set_source_rgb(cr, 1.0, 1.0, 0.9);
cairo_move_to(cr, 6, 12);
cairo_show_text(cr, "How do u feel today ?");
What can i verify ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|