Re: Font-related question...

Behdad Esfahbod <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.