summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-07-08 17:29:54 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-07-08 17:29:54 +0000
commitb935a4bd82366ca770be6ce6f64f2aefce8e1a65 (patch)
treeaf9e23f1c1652478e1f4c63185d63175febad7ed /docs
parent35a7c23baabda073fea6da3a593fb718c9ac8c89 (diff)
downloadpango-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 'docs')
-rw-r--r--docs/pango-sections.txt1
-rw-r--r--docs/tmpl/glyphs.sgml10
2 files changed, 11 insertions, 0 deletions
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
diff --git a/docs/tmpl/glyphs.sgml b/docs/tmpl/glyphs.sgml
index b43cbb6a..8292c688 100644
--- a/docs/tmpl/glyphs.sgml
+++ b/docs/tmpl/glyphs.sgml
@@ -382,6 +382,16 @@ The #GObject type for #PangoGlyphString.
@logical_rect:
+<!-- ##### FUNCTION pango_glyph_string_get_width ##### -->
+<para>
+
+</para>
+
+@glyphs:
+@font:
+@Returns:
+
+
<!-- ##### FUNCTION pango_glyph_string_index_to_x ##### -->
<para>