summaryrefslogtreecommitdiff
path: root/pango/pangoxft-private.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-07-10 20:50:53 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-07-10 20:50:53 +0000
commit5bf0c1d04b6ed75ad2c88fbed1e1eaecf0dcbfa2 (patch)
tree82f722e254dbc6b5cb1446b87103e27c8b0aecf8 /pango/pangoxft-private.h
parent19dea7b162bb2d12911d38770d8cc87accc40fe7 (diff)
downloadpango-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/pangoxft-private.h')
-rw-r--r--pango/pangoxft-private.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pangoxft-private.h b/pango/pangoxft-private.h
index 0ffdf6e5..cfd0b3fb 100644
--- a/pango/pangoxft-private.h
+++ b/pango/pangoxft-private.h
@@ -39,7 +39,12 @@ struct _PangoXftFont
guint16 mini_width; /* metrics for missing glyph drawing */
guint16 mini_height;
- guint16 mini_pad;
+ guint16 mini_pad;
+
+ GHashTable *glyph_info; /* Used only when we can't get
+ * glyph extents out of Xft because
+ * we have a transformation in effect
+ */
};
PangoXftFont *_pango_xft_font_new (PangoXftFontMap *xftfontmap,