summaryrefslogtreecommitdiff
path: root/pango/pango-layout.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-05-16 09:32:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-05-16 09:32:59 -0400
commitff16b948572c1bdc301d27af41b34566d28c6610 (patch)
tree3b667bcb9bac0f02da3b20aae2d9b4fed31bbcb3 /pango/pango-layout.h
parent4587e5d2231b717dd116253a49badc1ba3aa5db5 (diff)
downloadpango-ff16b948572c1bdc301d27af41b34566d28c6610.tar.gz
Provide access to PangoLayout.n_chars
This lets us avoid a bunch of g_utf8_strlen() calls, when Pango is already maintaining this information anyway. https://bugzilla.gnome.org/show_bug.cgi?id=650208
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r--pango/pango-layout.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index 52dc36a8..39d2e701 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -103,6 +103,8 @@ void pango_layout_set_text (PangoLayout *layout,
int length);
const char *pango_layout_get_text (PangoLayout *layout);
+gint pango_layout_get_character_count (PangoLayout *layout);
+
void pango_layout_set_markup (PangoLayout *layout,
const char *markup,
int length);