summaryrefslogtreecommitdiff
path: root/pango/pango-glyph.h
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-glyph.h')
-rw-r--r--pango/pango-glyph.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/pango/pango-glyph.h b/pango/pango-glyph.h
index c8e29fd6..789ae897 100644
--- a/pango/pango-glyph.h
+++ b/pango/pango-glyph.h
@@ -70,9 +70,10 @@ struct _PangoGlyphString {
PangoGlyphInfo *glyphs;
- /* This is a memory inefficient way of representing the
- * information here - each value gives the character index
- * of the start of the cluster to which the glyph belongs.
+ /* This is a memory inefficient way of representing the information
+ * here - each value gives the byte index within the text
+ * corresponding to the glyph string of the start of the cluster to
+ * which the glyph belongs.
*/
gint *log_clusters;
@@ -89,6 +90,13 @@ void pango_glyph_string_extents (PangoGlyphString *glyphs,
PangoRectangle *ink_rect,
PangoRectangle *logical_rect);
+void pango_glyph_string_extents_range (PangoGlyphString *glyphs,
+ int start,
+ int end,
+ PangoFont *font,
+ PangoRectangle *ink_rect,
+ PangoRectangle *logical_rect);
+
void pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs,
const char *text,
int length,