Searched refs:fontInfo (Results 1 – 4 of 4) sorted by relevance
113 FontInfo fontInfo = (FontInfo) o; in equals() local114 return mWeight == fontInfo.mWeight && mIsItalic == fontInfo.mIsItalic; in equals()398 FontInfo fontInfo = sCache.get(path);399 if (fontInfo != null) {401 sCache.put(path, fontInfo);402 ffd.addFont(fontInfo);414 fontInfo = new FontInfo();415 fontInfo.mFont = font;417 fontInfo.mWeight = FontUtilities.getFont2D(font).getWeight();419 fontInfo.mWeight = weight;[all …]
345 for (FontInfo fontInfo : fonts) { in getScriptFont()346 int count = fontInfo.mFont.canDisplayUpTo(text, start, limit); in getScriptFont()349 return fontInfo.mFont; in getScriptFont()354 bestFont = fontInfo.mFont; in getScriptFont()
172 FontInfo fontInfo = new FontInfo();173 fontInfo.mFont = font;174 fontInfo.mWeight = weight;175 fontInfo.mIsItalic = italic;176 addFont(fontInfo);179 private void addFont(@NonNull FontInfo fontInfo) {180 mFonts.putIfAbsent(fontInfo, fontInfo.mFont);
638 for (FontInfo fontInfo : fonts) { in buildTypeface()639 final ByteBuffer buffer = uriBuffer.get(fontInfo.getUri()); in buildTypeface()645 .setWeight(fontInfo.getWeight()) in buildTypeface()646 .setSlant(fontInfo.isItalic() in buildTypeface()648 .setTtcIndex(fontInfo.getTtcIndex()) in buildTypeface()649 .setFontVariationSettings(fontInfo.getAxes()) in buildTypeface()