Searched refs:bestFont (Results 1 – 4 of 4) sorted by relevance
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 144 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/ |
D | TypefaceCompatApi21Impl.java | 69 final FontInfo bestFont = findBestInfo(fonts, style); in createFromFontInfo() local 72 resolver.openFileDescriptor(bestFont.getUri(), "r", cancellationSignal)) { in createFromFontInfo()
|
D | TypefaceCompatApi26Impl.java | 234 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/ |
D | FontFamily_Delegate.java | 213 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()
|