From bbec7e8697907a922f80c00b94f54b9b8634d264 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 26 Sep 2012 15:37:20 -0400 Subject: Add pango_shape_full() Variant of pango_shape() that takes the full paragraph text as input. This is then passed in entirety to HarfBuzz, which would allow certain cross-run interactions (in Arabic for example). When combined with upcoming HarfBuzz 0.9.5+, this fixes: Red Hat Bug 858736 - [Spanish] Stray dotted circle rendered https://bugzilla.redhat.com/show_bug.cgi?id=858736 and partially: Bug 313181 - color changes break arabic shaping https://bugzilla.gnome.org/show_bug.cgi?id=313181 --- pango/pango-engine.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'pango/pango-engine.h') diff --git a/pango/pango-engine.h b/pango/pango-engine.h index d14a9827..51ac8c2e 100644 --- a/pango/pango-engine.h +++ b/pango/pango-engine.h @@ -186,12 +186,14 @@ struct _PangoEngineShapeClass PangoEngineClass parent_class; /*< public >*/ - void (*script_shape) (PangoEngineShape *engine, - PangoFont *font, - const char *text, - int length, + void (*script_shape) (PangoEngineShape *engine, + PangoFont *font, + const char *item_text, + unsigned int item_length, const PangoAnalysis *analysis, - PangoGlyphString *glyphs); + PangoGlyphString *glyphs, + const char *paragraph_text, + unsigned int paragraph_length); PangoCoverageLevel (*covers) (PangoEngineShape *engine, PangoFont *font, PangoLanguage *language, -- cgit v1.2.1