< prev index next >

src/java.desktop/share/classes/sun/font/FontUtilities.java

Print this page

        

*** 181,190 **** --- 181,209 ---- public static Font2D getFont2D(Font font) { return FontAccess.getFontAccess().getFont2D(font); } /** + * Return true if there any characters which would trigger layout. + * This method considers supplementary characters to be simple, + * since we do not presently invoke layout on any code points in + * outside the BMP. + */ + public static boolean isComplexScript(char [] chs, int start, int limit) { + + for (int i = start; i < limit; i++) { + if (chs[i] < MIN_LAYOUT_CHARCODE) { + continue; + } + else if (isComplexCharCode(chs[i])) { + return true; + } + } + return false; + } + + /** * If there is anything in the text which triggers a case * where char->glyph does not map 1:1 in straightforward * left->right ordering, then this method returns true. * Scripts which might require it but are not treated as such * due to JDK implementations will not return true.
< prev index next >