CVSROOT:        /cvs/gnome
Module name:    pango
Changes by:     federico        05/11/04 18:13:07

Modified files:
        .              : ChangeLog 
        pango          : pangocairo-fcfont.c 

Log message:
2005-11-04  Federico Mena Quintero  <[EMAIL PROTECTED]>

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.

URL : 
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=pango&who=federico&date=explicit&mindate=2005-11-04%2018:12&maxdate=2005-11-04%2018:14

_______________________________________________
cvs-commits-list mailing list
cvs-commits-list@gnome.org
http://mail.gnome.org/mailman/listinfo/cvs-commits-list

Reply via email to