summaryrefslogtreecommitdiff
path: root/pango/shape.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-11-14 23:52:10 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-11-14 23:52:10 +0000
commit30bee05412da1fcf54c11029b2eb00969fd9d7c1 (patch)
treedc0bea65589074df95fa07db4e62ebb874498706 /pango/shape.c
parent5bf48bca2c869c7ddada46b23dcd6aad78cc39d6 (diff)
downloadpango-30bee05412da1fcf54c11029b2eb00969fd9d7c1.tar.gz
Every character must be part of some cluster, so when we dont' have an
Tue Nov 14 18:45:24 2000 Owen Taylor <otaylor@redhat.com> * pango/shape.c (pango_shape): Every character must be part of some cluster, so when we dont' have an engine at all (pathalogical, happens now for formatting characters), create a cluster with one glyph=0 and 0 size.
Diffstat (limited to 'pango/shape.c')
-rw-r--r--pango/shape.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/pango/shape.c b/pango/shape.c
index c7ec405c..932b5654 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -41,5 +41,15 @@ void pango_shape (const gchar *text,
if (analysis->shape_engine)
analysis->shape_engine->script_shape (analysis->font, text, length, analysis, glyphs);
else
- pango_glyph_string_set_size (glyphs, 0);
+ {
+ pango_glyph_string_set_size (glyphs, 1);
+
+ glyphs->glyphs[0].glyph = 0;
+
+ glyphs->glyphs[0].geometry.x_offset = 0;
+ glyphs->glyphs[0].geometry.y_offset = 0;
+ glyphs->glyphs[0].geometry.width = 0;
+
+ glyphs->log_clusters[0] = 0;
+ }
}