[cairo] cairo_scale_font/cairo_transform_font()
Owen Taylor
otaylor at redhat.com
Sat Mar 19 10:10:19 PST 2005
On Sat, 2005-03-19 at 13:03 -0500, Owen Taylor wrote:
> I don't really like the way that scale_font() and transform_font()
> work currently:
>
> - Having set_font_name() or select_font() change the font matrix
> back to the identity strikes me as a weird side effect.
>
> - The fact that there is no explicit way to reset the
> font matrix to the identity means that you have to call select_font()
> or set_font_name when you want to change just the size.
There turns out there is one other way to restore the default font
matrix cairo_default_matrix() restores both the CTM and the
font_matrix to their default values.
I think cairo_default_matrix() changing the font matrix is a pure and
simple bug (unless it copying weirdness from Postscript) ... it doesn't
make any sense to me.
Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050319/f802cd93/attachment.pgp
More information about the cairo
mailing list