usp10: Apply all the GSUB features specified in Microsofts Typesetting documentation for Arabic Shaping.

This commit is contained in:
Aric Stewart 2010-05-27 15:03:34 -05:00 committed by Alexandre Julliard
parent 5ad2f6e152
commit cddb5d6455
1 changed files with 17 additions and 1 deletions

View File

@ -194,6 +194,17 @@ static const char* contextual_features[] =
"medi" "medi"
}; };
static const char* arabic_GSUB_features[] =
{
"rlig",
"calt",
"liga",
"dlig",
"cswh",
"mset",
NULL
};
static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph) static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph)
{ {
const GSUB_CoverageFormat1* cf1; const GSUB_CoverageFormat1* cf1;
@ -719,7 +730,12 @@ void SHAPE_ShapeArabicGlyphs(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa, WC
} }
} }
apply_GSUB_feature(hdc, psa, psc->GSUB_Table, pwOutGlyphs, dirL, pcGlyphs, "rlig"); i = 0;
while (arabic_GSUB_features[i] != NULL)
{
apply_GSUB_feature(hdc, psa, psc->GSUB_Table, pwOutGlyphs, dirL, pcGlyphs, arabic_GSUB_features[i]);
i++;
}
HeapFree(GetProcessHeap(),0,context_shape); HeapFree(GetProcessHeap(),0,context_shape);
HeapFree(GetProcessHeap(),0,context_type); HeapFree(GetProcessHeap(),0,context_type);