Home
last modified time | relevance | path

Searched refs:fontInfo (Results 1 – 4 of 4) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java174 FontInfo fontInfo = new FontInfo();
175 fontInfo.mFont = font;
176 fontInfo.mWeight = weight;
177 fontInfo.mIsItalic = italic;
178 addFont(fontInfo);
181 private void addFont(@NonNull FontInfo fontInfo) {
182 mFonts.putIfAbsent(fontInfo, fontInfo.mFont);
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java107 FontInfo fontInfo = (FontInfo) o; in equals() local
108 return mWeight == fontInfo.mWeight && mIsItalic == fontInfo.mIsItalic; in equals()
408 FontInfo fontInfo = new FontInfo();
409 fontInfo.mFont = font;
410 fontInfo.mWeight = weight;
411 fontInfo.mIsItalic = italic == RESOLVE_BY_FONT_TABLE ? font.isItalic() : italic == 1;
412 addFont(fontInfo);
416 private boolean addFont(@NonNull FontInfo fontInfo) {
417 return mFonts.putIfAbsent(fontInfo, fontInfo.mFont) == null;
DBidiRenderer.java346 for (FontInfo fontInfo : fonts) { in getScriptFont()
347 int count = fontInfo.mFont.canDisplayUpTo(text, start, limit); in getScriptFont()
350 return fontInfo.mFont; in getScriptFont()
355 bestFont = fontInfo.mFont; in getScriptFont()
/frameworks/base/core/java/android/provider/
DFontsContract.java645 for (FontInfo fontInfo : fonts) { in buildTypeface()
646 final ByteBuffer buffer = uriBuffer.get(fontInfo.getUri()); in buildTypeface()
652 .setWeight(fontInfo.getWeight()) in buildTypeface()
653 .setSlant(fontInfo.isItalic() in buildTypeface()
655 .setTtcIndex(fontInfo.getTtcIndex()) in buildTypeface()
656 .setFontVariationSettings(fontInfo.getAxes()) in buildTypeface()