< prev index next >
src/java.desktop/share/classes/sun/font/FontUtilities.java
Print this page
*** 234,244 ****
*/
public static boolean isNonSimpleChar(char ch) {
return
isComplexCharCode(ch) ||
(ch >= CharToGlyphMapper.HI_SURROGATE_START &&
! ch <= CharToGlyphMapper.LO_SURROGATE_END);
}
/* If the character code falls into any of a number of unicode ranges
* where we know that simple left->right layout mapping chars to glyphs
* 1:1 and accumulating advances is going to produce incorrect results,
--- 234,246 ----
*/
public static boolean isNonSimpleChar(char ch) {
return
isComplexCharCode(ch) ||
(ch >= CharToGlyphMapper.HI_SURROGATE_START &&
! ch <= CharToGlyphMapper.LO_SURROGATE_END) ||
! (ch >= CharToGlyphMapper.VS_START &&
! ch <= CharToGlyphMapper.VS_END);
}
/* If the character code falls into any of a number of unicode ranges
* where we know that simple left->right layout mapping chars to glyphs
* 1:1 and accumulating advances is going to produce incorrect results,
< prev index next >