Part of Bug 135683 – Cache glyphstring extents
authorBehdad Esfahbod <behdad@gnome.org>
Sat, 8 Jul 2006 17:29:54 +0000 (17:29 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Sat, 8 Jul 2006 17:29:54 +0000 (17:29 +0000)
commitb935a4bd82366ca770be6ce6f64f2aefce8e1a65
treeaf9e23f1c1652478e1f4c63185d63175febad7ed
parent35a7c23baabda073fea6da3a593fb718c9ac8c89
Part of Bug 135683 – Cache glyphstring extents

2006-07-08  Behdad Esfahbod  <behdad@gnome.org>

        Part of Bug 135683 – Cache glyphstring extents

        * docs/pango-sections.txt:
        * docs/tmpl/glyphs.sgml:
        * pango/pango.def:
        * pango/pango-glyph.h:
        * pango/glyphstring.c (pango_glyph_string_get_width): New function.
        Much faster than calling pango_glyph_string_extents and using
        logical_rect.width.

        * pango/pango-renderer.c (add_underline), (add_strikethrough),
        (pango_renderer_draw_layout_line): Use the new function for
        optimization.
ChangeLog
docs/pango-sections.txt
docs/tmpl/glyphs.sgml
pango/fonts.c
pango/glyphstring.c
pango/pango-glyph.h
pango/pango-renderer.c
pango/pango.def