Home
last modified time | relevance | path

Searched refs:bestFont (Results 1 – 6 of 6) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java125 FontInfo bestFont = null;
129 bestFont = mFonts.keySet().iterator().next();
137 bestFont = font;
145 if (bestFont == null) {
151 deriveFont(bestFont, desiredStyle);
/frameworks/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java172 Font bestFont = null; in renderScript() local
193 bestFont = font; in renderScript()
197 bestFont = font; in renderScript()
203 if (bestFont != null) { in renderScript()
204 render(start, highestUpTo, bestFont, flag, advances, advancesIndex, draw); in renderScript()
343 Font bestFont = fonts.get(0).mFont; in getScriptFont() local
354 bestFont = fontInfo.mFont; in getScriptFont()
358 return bestFont; in getScriptFont()
DFontFamily_Delegate.java218 FontInfo bestFont = null; in getFont() local
222 bestFont = mFonts.keySet().iterator().next(); in getFont()
230 bestFont = font; in getFont()
238 if (bestFont == null) { in getFont()
244 deriveFont(bestFont, desiredStyle); in getFont()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp147 const Font* bestFont = &mFonts[0]; in getClosestMatch() local
148 int bestMatch = computeMatch(bestFont->style(), style); in getClosestMatch()
153 bestFont = &font; in getClosestMatch()
157 return FakedFont{bestFont, computeFakery(style, bestFont->style())}; in getClosestMatch()
/frameworks/base/core/java/android/provider/
DFontsContract.java672 Font bestFont = family.getFont(0); in buildTypeface() local
673 int bestScore = normal.getMatchScore(bestFont.getStyle()); in buildTypeface()
678 bestFont = candidate; in buildTypeface()
682 return new Typeface.CustomFallbackBuilder(family).setStyle(bestFont.getStyle()).build(); in buildTypeface()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java276 Font bestFont = family.getFont(0); in createFromResources() local
277 int bestScore = normal.getMatchScore(bestFont.getStyle()); in createFromResources()
282 bestFont = candidate; in createFromResources()
287 .setStyle(bestFont.getStyle()) in createFromResources()