summaryrefslogtreecommitdiff
path: root/pango/pango-glyph.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-11-13 18:47:29 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-11-13 18:47:29 +0000
commitf6511ca5a76f630f5a8802bb65d417db8ed31cfd (patch)
tree4bd9592fa7adf8a790703e429e2c8fdff59df456 /pango/pango-glyph.h
parentd11951be51e06b6377ce0f1c546fde62281929a9 (diff)
downloadpango-f6511ca5a76f630f5a8802bb65d417db8ed31cfd.tar.gz
Add new PangoLayoutIter entry points
2000-11-13 Havoc Pennington <hp@redhat.com> * docs/pango-sections.txt: Add new PangoLayoutIter entry points * pango/glyphstring.c (pango_glyph_string_extents_range): New function * pango/pango-layout.c: Create PangoLayoutIter for iterating over a layout's visual elements * pango/pango-layout.c (pango_layout_check_lines): plug a memleak (attr iterator not freed) * pango/pango-tabs.c (pango_tab_array_free): plug a memleak (array->tabs not freed)
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,