[cairo] Font-related question...
Behdad Esfahbod
behdad at behdad.org
Thu Mar 21 16:49:11 PDT 2013
On 13-03-21 07:23 PM, Philip Schneider wrote:
[snip]
>
> // Can get the font pointer, if need be..
> testFont = cairo_get_scaled_font(cr);
Correct. "if need be" is key. Most of the time you don't need it. Cairo
does all kinds of caching for you. The reason cairo_scaled_font_create()
exists is to be able to create scaled fonts even when you don't have a surface
at hand.
behdad
More information about the cairo
mailing list