ICU-6007 Don't check for Thai presentation forms if the font doesn't contain Thai!

X-SVN-Rev: 22857
This commit is contained in:
Eric Mader 2007-10-26 02:27:04 +00:00
parent 4bab39d8e7
commit 313bc1e982

View File

@ -23,7 +23,10 @@ ThaiLayoutEngine::ThaiLayoutEngine(const LEFontInstance *fontInstance, le_int32
fErrorChar = 0x25CC;
// Figure out which presentation forms the font uses
if (fontInstance->canDisplay(0x0E64)) {
if (! fontInstance->canDisplay(0x0E01)) {
// No Thai in font; don't use presentation forms.
fGlyphSet = 3;
} else if (fontInstance->canDisplay(0x0E64)) {
// WorldType uses reserved space in Thai block
fGlyphSet = 0;
} else if (fontInstance->canDisplay(0xF701)) {