summaryrefslogtreecommitdiff
path: root/pango/shape.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-06-05 02:04:56 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-06-05 02:04:56 +0000
commit78059d83ba56f36c874cdf71dcb07a6724bf355f (patch)
treed9026b55a0a3a5a6478fd66f9cca8357ce52316b /pango/shape.c
parent9df621b3fa0a1e49c75eac8fc239138f8991b536 (diff)
downloadpango-78059d83ba56f36c874cdf71dcb07a6724bf355f.tar.gz
Zero glyphs->num_glyphs before calling into shape engine.
2007-06-04 Behdad Esfahbod <behdad@gnome.org> * pango/shape.c (pango_shape): Zero glyphs->num_glyphs before calling into shape engine. * pango/pango-engine.c (fallback_engine_shape): Improve, to support clusters and what not. * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Use "pango_script_get_sample_language (PANGO_SCRIPT_LATIN)" instead of hardcoding "en". Handle cairo_scaled_font_extents() failure. svn path=/trunk/; revision=2332
Diffstat (limited to 'pango/shape.c')
-rw-r--r--pango/shape.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/shape.c b/pango/shape.c
index 8e535aca..96bcb672 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -46,6 +46,8 @@ pango_shape (const gchar *text,
int i;
int last_cluster;
+ glyphs->num_glyphs = 0;
+
if (G_LIKELY (PANGO_IS_ENGINE_SHAPE (analysis->shape_engine) && PANGO_IS_FONT (analysis->font)))
{
_pango_engine_shape_shape (analysis->shape_engine, analysis->font,