From b935a4bd82366ca770be6ce6f64f2aefce8e1a65 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 8 Jul 2006 17:29:54 +0000 Subject: =?UTF-8?q?Part=20of=20Bug=20135683=20=E2=80=93=20Cache=20glyphstr?= =?UTF-8?q?ing=20extents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-07-08 Behdad Esfahbod 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. --- docs/pango-sections.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/pango-sections.txt') diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt index 9911c811..c27f8fd4 100644 --- a/docs/pango-sections.txt +++ b/docs/pango-sections.txt @@ -98,6 +98,7 @@ pango_glyph_string_set_size pango_glyph_string_free pango_glyph_string_extents pango_glyph_string_extents_range +pango_glyph_string_get_width pango_glyph_string_index_to_x pango_glyph_string_x_to_index pango_glyph_string_get_logical_widths -- cgit v1.2.1