ICU-4711 Code review changes: filterZeroWidth was returning code points as glyph IDs.

X-SVN-Rev: 19979
This commit is contained in:
Eric Mader 2006-08-05 01:33:48 +00:00
parent 9bcf354c65
commit ad595e0ccd

View File

@ -91,7 +91,7 @@ LEGlyphID LEFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *map
}
if (filterZeroWidth && (mappedChar == 0x200C || mappedChar == 0x200D)) {
return canDisplay(mappedChar)? 1 : mappedChar;
return canDisplay(mappedChar)? 0x0001 : 0xFFFF;
}
return mapCharToGlyph(mappedChar);