diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-01-17 23:00:18 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-01-17 23:00:18 +0000 |
commit | 620fb9ffc8ce07446ab341630e37900d7c9c102b (patch) | |
tree | f6924b9416bfc734615e47403069b091b8bde7cf /pango/pango.h | |
parent | 08be81c00f4fce735979e6a684eeade00c1ce328 (diff) | |
download | pango-620fb9ffc8ce07446ab341630e37900d7c9c102b.tar.gz |
Switch GlyphStrings to have a single array of PangoGlyphInfo instead of
Sat Jan 15 03:17:35 2000 Owen Taylor <otaylor@redhat.com>
* pango/glyphstring.c pango/mapping.c pango/pangox.c
modules/basic.c examples/viewer.c:
Switch GlyphStrings to have a single array of
PangoGlyphInfo instead of multiple arrays. Rename
PangoGlyphIndex to PangoGlyph.
Diffstat (limited to 'pango/pango.h')
-rw-r--r-- | pango/pango.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/pango/pango.h b/pango/pango.h index efc3669e..96697408 100644 --- a/pango/pango.h +++ b/pango/pango.h @@ -47,9 +47,9 @@ typedef struct _PangoLogAttr PangoLogAttr; typedef struct _PangoFont PangoFont; typedef struct _PangoFontClass PangoFontClass; -typedef struct _PangoGlyph PangoGlyph; typedef struct _PangoGlyphGeometry PangoGlyphGeometry; typedef struct _PangoGlyphVisAttr PangoGlyphVisAttr; +typedef struct _PangoGlyphInfo PangoGlyphInfo; typedef struct _PangoGlyphString PangoGlyphString; typedef struct _PangoEngineInfo PangoEngineInfo; @@ -161,16 +161,9 @@ void pango_font_set_data (PangoFont *font, * GLYPH STORAGE */ -/* A index of a glyph into a PangoCFont. Rendering system dependent +/* A index of a glyph into a font. Rendering system dependent */ -typedef guint32 PangoGlyphIndex; - -/* A single glyph - */ -struct _PangoGlyph -{ - PangoGlyphIndex glyph; -}; +typedef guint32 PangoGlyph; /* Positioning information about a glyph */ @@ -188,14 +181,22 @@ struct _PangoGlyphVisAttr guint is_cluster_start : 1; }; +/* A single glyph + */ +struct _PangoGlyphInfo +{ + PangoGlyph glyph; + PangoGlyphGeometry geometry; + PangoGlyphVisAttr attr; +}; + /* A string of glyphs with positional information and visual attributes - * ready for drawing */ struct _PangoGlyphString { gint num_glyphs; - PangoGlyph *glyphs; - PangoGlyphGeometry *geometry; - PangoGlyphVisAttr *attrs; + + PangoGlyphInfo *glyphs; /* This is a memory inefficient way of representing the * information here - each value gives the character index |