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

This commit is contained in:
Aric Stewart 2011-12-06 08:47:51 -06:00 committed by Alexandre Julliard
parent 4352a9fa14
commit 9cddd18cb9
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}