[cairo] How to draw text using cario API
Meryl Silverburgh
silverburgh.meryl at gmail.com
Wed Feb 1 19:28:11 PST 2006
Hi,
I am following the cario to draw Text on the screen.
After I draw the text, it appears very fuzzy (not clear on the
screen). For example, I draw 'hello' on the screen. The 2 'l' are
very close together, the whole word is kind press together.
Here is my code, can you please tell me what is wrong?
cairo_text_extents_t extents;
cairo_select_font_face (cr, "Sans",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 14.0);
cairo_move_to (cr, x, y);
// try these 2 api, both have the same problem.
// cairo_show_text (cr, "hello");
cairo_text_path (cr, "hello");
More information about the cairo
mailing list