Home
last modified time | relevance | path

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

/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()
344 Font bestFont = fonts.get(0).mFont; in getScriptFont() local
355 bestFont = fontInfo.mFont; in getScriptFont()
359 return bestFont; in getScriptFont()
DFontFamily_Delegate.java212 FontInfo bestFont = null; in getFont() local
216 bestFont = mFonts.keySet().iterator().next(); in getFont()
224 bestFont = font; in getFont()
232 if (bestFont == null) { in getFont()
238 deriveFont(bestFont, desiredStyle); in getFont()
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java136 FontInfo bestFont = null;
140 bestFont = mFonts.keySet().iterator().next();
148 bestFont = font;
156 if (bestFont == null) {
162 deriveFont(bestFont, desiredStyle);
/frameworks/minikin/libs/minikin/
DFontFamily.cpp155 Font* bestFont = mFonts[bestIndex].get(); in getClosestMatch() local
156 int bestMatch = computeMatch(bestFont->style(), style); in getClosestMatch()
161 bestFont = font; in getClosestMatch()
166 return FakedFont{mFonts[bestIndex], computeFakery(style, bestFont->style())}; in getClosestMatch()
/frameworks/base/core/java/android/provider/
DFontsContract.java703 Font bestFont = family.getFont(0); in buildTypeface() local
704 int bestScore = normal.getMatchScore(bestFont.getStyle()); in buildTypeface()
709 bestFont = candidate; in buildTypeface()
713 return new Typeface.CustomFallbackBuilder(family).setStyle(bestFont.getStyle()).build(); in buildTypeface()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java355 Font bestFont = family.getFont(0); in createFromResources() local
356 int bestScore = normal.getMatchScore(bestFont.getStyle()); in createFromResources()
361 bestFont = candidate; in createFromResources()
366 .setStyle(bestFont.getStyle()) in createFromResources()