summaryrefslogtreecommitdiff
path: root/modules/hebrew/hebrew-shaper.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2005-11-04 23:13:07 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2005-11-04 23:13:07 +0000
commit933f541030f770b446d95bb0b5b3c85d561a63e5 (patch)
tree837f1f6c93a93396580d5086a9bfdb8b7162f8f8 /modules/hebrew/hebrew-shaper.c
parent69bbb89d5436cae4602579f952d68e84efe9ec24 (diff)
downloadpango-933f541030f770b446d95bb0b5b3c85d561a63e5.tar.gz
Fixes #320665:
2005-11-04 Federico Mena Quintero <federico@ximian.com> Fixes #320665: * pango/pangocairo-fcfont.c: Use a simple, fixed-size cache to map gunichars to glyph indices within the font. The cache is described in detail here: http://primates.ximian.com/~federico/news-2005-10.html#gtkfilechooser-profile-5 (GlyphCacheEntry): new structure to hold a gunichar and a PangoGlyph. (struct _PangoCairoFcFont): Add a char_to_glyph_cache field. (pango_cairo_fc_font_get_glyph): Allocate the char_to_glyph_cache if needed. We do it on demand because while many fonts will be alive at any one time (in order to cover the whole Unicode space), only very few of them will be actually accessed for glyph lookups. (pango_cairo_fc_font_get_glyph): Look up the gunichar in the cache, and replace the cache entry if necessary. (pango_cairo_fc_font_finalize): Free the char_to_glyph_cache.
Diffstat (limited to 'modules/hebrew/hebrew-shaper.c')
0 files changed, 0 insertions, 0 deletions