Aric Stewart : usp10: Initialize the GSUB table before doing any contextual shaping.

Alexandre Julliard julliard at winehq.org
Tue Dec 6 15:46:19 CST 2011


Module: wine
Branch: master
Commit: 9cddd18cb913e081855ada106bfcd5f11ef3e3af
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9cddd18cb913e081855ada106bfcd5f11ef3e3af

Author: Aric Stewart <aric at codeweavers.com>
Date:   Tue Dec  6 08:47:51 2011 -0600

usp10: Initialize the GSUB table before doing any contextual shaping.

---

 dlls/usp10/shape.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c
index 2189b92..5fcb056 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);
 }




More information about the wine-cvs mailing list