diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-07-08 17:29:54 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-07-08 17:29:54 +0000 |
commit | b935a4bd82366ca770be6ce6f64f2aefce8e1a65 (patch) | |
tree | af9e23f1c1652478e1f4c63185d63175febad7ed /pango/pango-glyph.h | |
parent | 35a7c23baabda073fea6da3a593fb718c9ac8c89 (diff) | |
download | pango-b935a4bd82366ca770be6ce6f64f2aefce8e1a65.tar.gz |
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.
Diffstat (limited to 'pango/pango-glyph.h')
-rw-r--r-- | pango/pango-glyph.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-glyph.h b/pango/pango-glyph.h index 1195f135..71b6911e 100644 --- a/pango/pango-glyph.h +++ b/pango/pango-glyph.h @@ -91,6 +91,8 @@ void pango_glyph_string_extents (PangoGlyphString *glyphs, PangoFont *font, PangoRectangle *ink_rect, PangoRectangle *logical_rect); +int pango_glyph_string_get_width(PangoGlyphString *glyphs, + PangoFont *font); void pango_glyph_string_extents_range (PangoGlyphString *glyphs, int start, |