Platform SDK: International Features |
The following code sample calls ScriptGetProperties to check if the script requires glyph shaping.
const SCRIPT_PROPERTIES **g_ppScriptProperties; int g_iMaxScript; ScriptGetProperties(&g_ppScriptProperties, &g_iMaxScript); hResult = ScriptItemize( … , pItems, &cItems); for (i=0; i<cItems; i++) { if (g_ppScriptProperties[pItems[i].a.eScript] >fComplex) { // Item [i] is complex script text // requiring glyph shaping } }