[cairo] API Proposal: cairo_get_scaled_font()

Behdad Esfahbod behdad at behdad.org
Mon Jan 29 13:12:14 PST 2007


I want to propose the following new API (for 1.4 or 1.6):

cairo_scaled_font_t *
cairo_get_scaled_font (cairo_t *cr);

This is similar to cairo_get_font_face(): returns an opaque
immutable object.  user.  The setter was added in cairo 1.2
already.

While there, one may also have a look at cairo_set_scaled_font()
and try to implement it a bit smarter.

Another thing I've wanted to check for sometime is to measure and
make sure that the scaled-font cache is working as expected.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list