usp10: Initialize the GSUB table before doing any contextual shaping.
This commit is contained in:
parent
4352a9fa14
commit
9cddd18cb9
|
@ -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)
|
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)
|
if (ShapingData[psa->eScript].contextProc)
|
||||||
ShapingData[psa->eScript].contextProc(hdc, psc, psa, pwcChars, cChars, pwOutGlyphs, pcGlyphs, cMaxGlyphs, pwLogClust);
|
ShapingData[psa->eScript].contextProc(hdc, psc, psa, pwcChars, cChars, pwOutGlyphs, pcGlyphs, cMaxGlyphs, pwLogClust);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue