[cairo] Font size, how to make it very small?

Gustavo Sikora wildsoul at gmail.com
Mon Sep 11 05:57:19 PDT 2006


Hi there,

Here's some code of what I'm doing:

cairo_text_extents_t extents;

cairo_select_font_face (cr, "Sans", CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 0.01);
cairo_text_extents (cr, (const char *)str, &extents);
tx = noAtual->x - (extents.width/2 + extents.x_bearing);
ty = noAtual->y - (extents.height/2 + extents.y_bearing);

cairo_move_to (cr, tx, ty);
cairo_show_text (cr, (const char *)str);
cairo_fill_preserve (cr);

----

The font size is set to 0.01 and even changing this value, it never get
smaller...
Any help?

Thanks

-- 
Gustavo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/cairo/attachments/20060911/0714f4d3/attachment.html


More information about the cairo mailing list