Lines Matching refs:unicode
86 private int getCachedGlyphCode(int unicode) {
87 if (unicode >= MAXUNICODE) {
91 if ((gmap = glyphMaps[unicode >> 8]) == null) {
94 return gmap[unicode & 0xff];
97 private void setCachedGlyphCode(int unicode, int glyphCode) {
98 if (unicode >= MAXUNICODE) {
101 int index0 = unicode >> 8;
108 glyphMaps[index0][unicode & 0xff] = glyphCode;
120 private final int convertToGlyph(int unicode) {
123 if (!hasExcludes || !font.isExcludedChar(slot, unicode)) {
125 int glyphCode = mapper.charToGlyph(unicode);
128 setCachedGlyphCode(unicode, glyphCode);
158 public int charToGlyph(int unicode) {
160 int glyphCode = getCachedGlyphCode(unicode);
162 glyphCode = convertToGlyph(unicode);
167 public int charToGlyph(int unicode, int prefSlot) {
170 int glyphCode = mapper.charToGlyph(unicode);
175 return charToGlyph(unicode);
178 public int charToGlyph(char unicode) {
180 int glyphCode = getCachedGlyphCode(unicode);
182 glyphCode = convertToGlyph(unicode);