Home
last modified time | relevance | path

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

/frameworks/minikin/libs/minikin/
DFontFamily.cpp144 const Font* bestFont = &mFonts[0]; in getClosestMatch() local
145 int bestMatch = computeMatch(bestFont->style(), style); in getClosestMatch()
150 bestFont = &font; in getClosestMatch()
154 return FakedFont{bestFont, computeFakery(style, bestFont->style())}; in getClosestMatch()
/frameworks/support/compat/src/main/java/androidx/core/graphics/
DTypefaceCompatApi21Impl.java69 final FontInfo bestFont = findBestInfo(fonts, style); in createFromFontInfo() local
72 resolver.openFileDescriptor(bestFont.getUri(), "r", cancellationSignal)) { in createFromFontInfo()
DTypefaceCompatApi26Impl.java234 final FontsContractCompat.FontInfo bestFont = findBestInfo(fonts, style); in createFromFontInfo() local
237 resolver.openFileDescriptor(bestFont.getUri(), "r", cancellationSignal)) { in createFromFontInfo()
242 .setWeight(bestFont.getWeight()) in createFromFontInfo()
243 .setItalic(bestFont.isItalic()) in createFromFontInfo()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java213 FontInfo bestFont = null; in getFont() local
217 bestFont = mFonts.keySet().iterator().next(); in getFont()
226 bestFont = font; in getFont()
234 if (bestFont == null) { in getFont()
240 deriveFont(bestFont, desiredStyle); in getFont()