[cairo] cairo_scale_font/cairo_transform_font()

Øyvind Kolås islewind at gmail.com
Sat Mar 19 10:21:02 PST 2005


On Sat, 19 Mar 2005 13:03:20 -0500, Owen Taylor <otaylor at redhat.com> wrote:
> What if we just had:
> 
>  cairo_set_font_size()

I presume this would be specified in relation to user space as
dictated by the CTM. This would make:

cairo_select_font (cr, "Sans",
   CAIRO_FONT_SLANT_NORMAL,
   CAIRO_FONT_WEiGHT_NORMAL);  
cairo_scale_font (cr, 10);

equal to:

cairo_set_font_name (cr, "Sans");
cairo_set_font_size (cr, 10);

Here assuming that slant and weight will be seperate setters/getters.

Would the value returned by cairo_get_font_size change when the CTM changes?

/Øyvind K.

-- 
Software patents hinder progress | http://swpat.ffii.org/ 
Web :  http://pippin.gimp.org/



More information about the cairo mailing list