/** * Returns true if the specified unicode value is within this range. */ public boolean contains(String unicode) { if (unicode.length() == 1) { int unicodeVal = unicode.charAt(0); return contains(unicodeVal); } return false; }
String token = st.nextToken(); if (token.startsWith("U+")) { // its a unicode range firstUnicodeRanges.add(new UnicodeRange(token)); } else { int[] glyphCodes = font.getGlyphCodesForUnicode(token); String token = st.nextToken(); if (token.startsWith("U+")) { // its a unicode range secondUnicodeRanges.add(new UnicodeRange(token)); } else { int[] glyphCodes = font.getGlyphCodesForUnicode(token);
String token = st.nextToken(); if (token.startsWith("U+")) { // its a unicode range firstUnicodeRanges.add(new UnicodeRange(token)); } else { int[] glyphCodes = font.getGlyphCodesForUnicode(token); String token = st.nextToken(); if (token.startsWith("U+")) { // its a unicode range secondUnicodeRanges.add(new UnicodeRange(token)); } else { int[] glyphCodes = font.getGlyphCodesForUnicode(token);
/** * Returns true if the specified unicode value is within this range. */ public boolean contains(String unicode) { if (unicode.length() == 1) { int unicodeVal = unicode.charAt(0); return contains(unicodeVal); } return false; }
String token = st.nextToken(); if (token.startsWith("U+")) { // its a unicode range firstUnicodeRanges.add(new UnicodeRange(token)); } else { int[] glyphCodes = font.getGlyphCodesForUnicode(token); String token = st.nextToken(); if (token.startsWith("U+")) { // its a unicode range secondUnicodeRanges.add(new UnicodeRange(token)); } else { int[] glyphCodes = font.getGlyphCodesForUnicode(token);
/** * Returns true if the specified unicode value is within this range. */ public boolean contains(String unicode) { if (unicode.length() == 1) { int unicodeVal = unicode.charAt(0); return contains(unicodeVal); } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as first by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of first glyphs for * the kerning entry */ public boolean matchesFirstGlyph(int glyphCode, char glyphUnicode) { if (firstGlyphCodes != null) { int pt = Arrays.binarySearch(firstGlyphCodes, glyphCode); if (pt >= 0) return true; } for (UnicodeRange firstUnicodeRange : firstUnicodeRanges) { if (firstUnicodeRange.contains(glyphUnicode)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as second by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of second glyphs for the * kerning entry */ public boolean matchesSecondGlyph(int glyphCode, char glyphUnicode) { if (secondGlyphCodes != null) { int pt = Arrays.binarySearch(secondGlyphCodes, glyphCode); if (pt >= 0) return true; } for (UnicodeRange secondUnicodeRange : secondUnicodeRanges) { if (secondUnicodeRange.contains(glyphUnicode)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as first by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of first glyphs for * the kerning entry */ public boolean matchesFirstGlyph(int glyphCode, char glyphUnicode) { if (firstGlyphCodes != null) { int pt = Arrays.binarySearch(firstGlyphCodes, glyphCode); if (pt >= 0) return true; } for (int i = 0; i < firstUnicodeRanges.length; i++) { if (firstUnicodeRanges[i].contains(glyphUnicode)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as second by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of second glyphs for the * kerning entry */ public boolean matchesSecondGlyph(int glyphCode, char glyphUnicode) { if (secondGlyphCodes != null) { int pt = Arrays.binarySearch(secondGlyphCodes, glyphCode); if (pt >= 0) return true; } for (UnicodeRange secondUnicodeRange : secondUnicodeRanges) { if (secondUnicodeRange.contains(glyphUnicode)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as first by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of first glyphs for * the kerning entry */ public boolean matchesFirstGlyph(int glyphCode, char glyphUnicode) { if (firstGlyphCodes != null) { int pt = Arrays.binarySearch(firstGlyphCodes, glyphCode); if (pt >= 0) return true; } for (UnicodeRange firstUnicodeRange : firstUnicodeRanges) { if (firstUnicodeRange.contains(glyphUnicode)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as second by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of second glyphs for the * kerning entry */ public boolean matchesSecondGlyph(int glyphCode, char glyphUnicode) { if (secondGlyphCodes != null) { int pt = Arrays.binarySearch(secondGlyphCodes, glyphCode); if (pt >= 0) return true; } for (int i = 0; i < secondUnicodeRanges.length; i++) { if (secondUnicodeRanges[i].contains(glyphUnicode)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as second by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of second glyphs for the * kerning entry */ public boolean matchesSecondGlyph(int glyphCode, String glyphUnicode) { if (secondGlyphCodes != null) { int pt = Arrays.binarySearch(secondGlyphCodes, glyphCode); if (pt >= 0) return true; } if (glyphUnicode.length() < 1) return false; char glyphChar = glyphUnicode.charAt(0); for (int i = 0; i < secondUnicodeRanges.length; i++) { if (secondUnicodeRanges[i].contains(glyphChar)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as first by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of first glyphs for * the kerning entry */ public boolean matchesFirstGlyph(int glyphCode, String glyphUnicode) { if (firstGlyphCodes != null) { int pt = Arrays.binarySearch(firstGlyphCodes, glyphCode); if (pt >= 0) return true; } if (glyphUnicode.length() < 1) return false; char glyphChar = glyphUnicode.charAt(0); for (UnicodeRange firstUnicodeRange : firstUnicodeRanges) { if (firstUnicodeRange.contains(glyphChar)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as second by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of second glyphs for the * kerning entry */ public boolean matchesSecondGlyph(int glyphCode, String glyphUnicode) { if (secondGlyphCodes != null) { int pt = Arrays.binarySearch(secondGlyphCodes, glyphCode); if (pt >= 0) return true; } if (glyphUnicode.length() < 1) return false; char glyphChar = glyphUnicode.charAt(0); for (UnicodeRange secondUnicodeRange : secondUnicodeRanges) { if (secondUnicodeRange.contains(glyphChar)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as first by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of first glyphs for * the kerning entry */ public boolean matchesFirstGlyph(int glyphCode, String glyphUnicode) { if (firstGlyphCodes != null) { int pt = Arrays.binarySearch(firstGlyphCodes, glyphCode); if (pt >= 0) return true; } if (glyphUnicode.length() < 1) return false; char glyphChar = glyphUnicode.charAt(0); for (UnicodeRange firstUnicodeRange : firstUnicodeRanges) { if (firstUnicodeRange.contains(glyphChar)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as second by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of second glyphs for the * kerning entry */ public boolean matchesSecondGlyph(int glyphCode, String glyphUnicode) { if (secondGlyphCodes != null) { int pt = Arrays.binarySearch(secondGlyphCodes, glyphCode); if (pt >= 0) return true; } if (glyphUnicode.length() < 1) return false; char glyphChar = glyphUnicode.charAt(0); for (UnicodeRange secondUnicodeRange : secondUnicodeRanges) { if (secondUnicodeRange.contains(glyphChar)) return true; } return false; }
/** * Returns true if the specified glyph is one of the glyphs considered * as first by this kerning entry. Returns false otherwise. * * @param glyphCode The id of the glyph to test. * @param glyphUnicode The unicode value of the glyph to test. * @return True if this glyph is in the list of first glyphs for * the kerning entry */ public boolean matchesFirstGlyph(int glyphCode, String glyphUnicode) { if (firstGlyphCodes != null) { int pt = Arrays.binarySearch(firstGlyphCodes, glyphCode); if (pt >= 0) return true; } if (glyphUnicode.length() < 1) return false; char glyphChar = glyphUnicode.charAt(0); for (int i = 0; i < firstUnicodeRanges.length; i++) { if (firstUnicodeRanges[i].contains(glyphChar)) return true; } return false; }