diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-07-10 20:50:53 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-07-10 20:50:53 +0000 |
commit | 5bf0c1d04b6ed75ad2c88fbed1e1eaecf0dcbfa2 (patch) | |
tree | 82f722e254dbc6b5cb1446b87103e27c8b0aecf8 /pango/pangofc-font.h | |
parent | 19dea7b162bb2d12911d38770d8cc87accc40fe7 (diff) | |
download | pango-5bf0c1d04b6ed75ad2c88fbed1e1eaecf0dcbfa2.tar.gz |
Add hinted/transform flags to the font structure to allow efficient
Sat Jul 10 16:39:44 2004 Owen Taylor <otaylor@redhat.com>
* pango/pangofc-font.[ch]: Add hinted/transform flags
to the font structure to allow efficient conditionalization
of behavior rather than repeatedly extracting the information
from the FcPattern.
* pango/pangofc-font.c pango/pangofc-private.h pango/pangoft2.c:
Move the glyph metrics computation into a
_pango_fc_font_get_raw_extents() function that can be
shared with the Xft backend.
* pango/pangoxft.c: When a transform is in effect, don't
get glyph extents from Xft ... they are device space
and not useful, use _pango_fc_font_get_raw_extents() instead.
Diffstat (limited to 'pango/pangofc-font.h')
-rw-r--r-- | pango/pangofc-font.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangofc-font.h b/pango/pangofc-font.h index 927a4685..70e72432 100644 --- a/pango/pangofc-font.h +++ b/pango/pangofc-font.h @@ -74,6 +74,9 @@ struct _PangoFcFont PangoFontDescription *description; GSList *metrics_by_lang; + + guint hinted : 1; + guint transform : 1; }; /** |