diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-05-16 09:32:59 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-05-16 09:32:59 -0400 |
commit | ff16b948572c1bdc301d27af41b34566d28c6610 (patch) | |
tree | 3b667bcb9bac0f02da3b20aae2d9b4fed31bbcb3 /pango/pango-layout.h | |
parent | 4587e5d2231b717dd116253a49badc1ba3aa5db5 (diff) | |
download | pango-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.h | 2 |
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); |