From ad595e0ccd151deccfc8bfc0b97c672577d50808 Mon Sep 17 00:00:00 2001 From: Eric Mader Date: Sat, 5 Aug 2006 01:33:48 +0000 Subject: [PATCH] ICU-4711 Code review changes: filterZeroWidth was returning code points as glyph IDs. X-SVN-Rev: 19979 --- icu4c/source/layout/LEFontInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/layout/LEFontInstance.cpp b/icu4c/source/layout/LEFontInstance.cpp index 7ad71191e1..eba239c1c4 100644 --- a/icu4c/source/layout/LEFontInstance.cpp +++ b/icu4c/source/layout/LEFontInstance.cpp @@ -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);