ICU-4711 Code review changes: filterZeroWidth was returning code points as glyph IDs.
X-SVN-Rev: 19979
This commit is contained in:
parent
9bcf354c65
commit
ad595e0ccd
@ -91,7 +91,7 @@ LEGlyphID LEFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *map
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (filterZeroWidth && (mappedChar == 0x200C || mappedChar == 0x200D)) {
|
if (filterZeroWidth && (mappedChar == 0x200C || mappedChar == 0x200D)) {
|
||||||
return canDisplay(mappedChar)? 1 : mappedChar;
|
return canDisplay(mappedChar)? 0x0001 : 0xFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
return mapCharToGlyph(mappedChar);
|
return mapCharToGlyph(mappedChar);
|
||||||
|
Loading…
Reference in New Issue
Block a user