Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java113 FontInfo fontInfo = (FontInfo) o; in equals() local
114 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 …]
DBidiRenderer.java345 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()
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java172 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);
/frameworks/base/core/java/android/provider/
DFontsContract.java638 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()