[cairo] Locking font / pen space

Bill Spitzak spitzak at gmail.com
Mon Aug 30 10:33:00 PDT 2010



Arjen Nienhuis wrote:

> I have written code like this:
> 
> for (c in text)
> {
>   cairo_show_text (cr, c);
>   cairo_translate(cr, dx, 0);
>   cairo_rotate(cr, a);
>   cairo_translate(cr, dx, 0);
> }
> 
> ...to get text on a circle. So I need to put cairo_set_font_size() in 
> that loop? (if font-lock mode is on)

Yes you would have to put the set-font in the loop if this mode is on.


More information about the cairo mailing list