From 9cddd18cb913e081855ada106bfcd5f11ef3e3af Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Tue, 6 Dec 2011 08:47:51 -0600 Subject: [PATCH] usp10: Initialize the GSUB table before doing any contextual shaping. --- dlls/usp10/shape.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index 2189b92471a..5fcb0569e2c 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -3387,6 +3387,9 @@ void SHAPE_CharGlyphProp(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa, const void SHAPE_ContextualShaping(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa, WCHAR* pwcChars, INT cChars, WORD* pwOutGlyphs, INT* pcGlyphs, INT cMaxGlyphs, WORD *pwLogClust) { + if (!psc->GSUB_Table) + psc->GSUB_Table = load_gsub_table(hdc); + if (ShapingData[psa->eScript].contextProc) ShapingData[psa->eScript].contextProc(hdc, psc, psa, pwcChars, cChars, pwOutGlyphs, pcGlyphs, cMaxGlyphs, pwLogClust); }