[cairo] Locking font / pen space

Bill Spitzak spitzak at gmail.com
Sat Aug 28 09:10:09 PDT 2010


On Aug 28, 2010, at 5:30 AM, Arjen Nienhuis wrote:

> I think I'd rather save the font space in a variable and restore it  
> when needed:
>
> my_label_font_space = cairo_save_font_space(cr);
>
> void my_draw_label(cr, text)
> {
>     cairo_save(cr);
>     cairo_restore_font_space(cr, my_label_font_space);
>     cairo_show_text (cr, text);
>     cairo_restore(cr);
> }

Also want to point out that such a solution would be incompatible with  
the current behavior of the pattern transform.

What I want is a mode switch that really means "make all the Cairo  
transforms consistent".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100828/6fff4dcc/attachment.htm>


More information about the cairo mailing list