diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-08-19 18:10:28 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-08-19 18:10:28 +0000 |
commit | 2378ff9771db2606e11b27cba5bd802463699d41 (patch) | |
tree | bfb35594c26becacae1c3aa1d72395335c10edd8 /pango/pangoft2-fontmap.c | |
parent | 2c1bc52c9d3429c34a26ad643eff8f84c339034e (diff) | |
download | pango-2378ff9771db2606e11b27cba5bd802463699d41.tar.gz |
Delete the FC_PATTERN out of the result of FcFontRenderPrepare(), because
Mon Aug 19 14:07:02 2002 Owen Taylor <otaylor@redhat.com>
* pango/pangofc-fontmap.cI (pango_fc_font_map_get_patterns):
Delete the FC_PATTERN out of the result of FcFontRenderPrepare(),
because it makes identical fonts look like not identical fonts.
* pango/pangofc-fontmap.cI (uniquify_pattern): pango/pangoft-fontmap.c
pango/pangoxft-fontmap.c: Use a hash table to uniquify the patterns
we cache to save memory and speed lookups.
* pango/pangoxft-font.c (pango_xft_font_get_font): Split into
a public wrappper (with g_return_if_fail()) around a static
internal function (without check).
* pango/pangoxft-fontmap.c (_pango_xft_font_map_get_info): Remove
checked cast, since it was showing up high on profiles.
Diffstat (limited to 'pango/pangoft2-fontmap.c')
-rw-r--r-- | pango/pangoft2-fontmap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c index ad15e6d1..23e7a812 100644 --- a/pango/pangoft2-fontmap.c +++ b/pango/pangoft2-fontmap.c @@ -54,7 +54,11 @@ struct _PangoFT2FontMap /* We have one map from PangoFontDescription -> PangoXftPatternSet * per language tag. */ - GList *fontset_hash_list; + GList *fontset_hash_list; + /* pattern_hash is used to make sure we only store one copy of + * each identical pattern. (Speeds up lookup). + */ + GHashTable *pattern_hash; GHashTable *coverage_hash; /* Maps font file name -> PangoCoverage */ GHashTable *fonts; /* Maps XftPattern -> PangoFT2Font */ |