[cairo] First implementation of font Changes
Carl Worth
cworth at redhat.com
Wed Apr 6 14:40:31 PDT 2005
On Wed, 06 Apr 2005 16:56:40 -0400, Owen Taylor wrote:
> What did you think about:
>
> cairo_font_t => cairo_scaled_font_t
> cairo_font_name_t => cairo_font_face_t
>
> cairo_set_font_name => cairo_set_font_face()
> cairo_get_font_name => cairo_get_font_face()
> cairo_select_font => cairo_select_font_face()
I think this is reasonable enough.
It seems a little odd that we'll end up with no object called a
cairo_font_t. But, at least we do have "font" in all the names now, so
users should be able to find what they're looking for, (where
cairo_face_t had me concerned in that regard).
> If we rename font => scaled_font, then we have:
>
> cairo_scaled_font_extents(cairo_scaled_font_t)
> cairo_text_extents(cairo_t)
> cairo_glyph_extents(cairo_t)
> cairo_font_extents(cairo_t)
>
> Which doesn't strike me as bad.
Yes, that's a nice fix.
-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050406/342ae43d/attachment.pgp
More information about the cairo
mailing list