Home
last modified time | relevance | path

Searched refs:mFonts (Results 1 – 8 of 8) sorted by relevance

/frameworks/minikin/libs/minikin/
DFontFamily.cpp116 mFonts(std::move(fonts)), in FontFamily()
119 MINIKIN_ASSERT(!mFonts.empty(), "FontFamily must contain at least one font."); in FontFamily()
144 const Font* bestFont = &mFonts[0]; in getClosestMatch()
146 for (size_t i = 1; i < mFonts.size(); i++) { in getClosestMatch()
147 const Font& font = mFonts[i]; in getClosestMatch()
167 for (size_t i = 0; i < mFonts.size(); ++i) { in computeCoverage()
168 std::unordered_set<AxisTag> supportedAxes = mFonts[i].getSupportedAxes(); in computeCoverage()
217 for (const Font& font : mFonts) { in createFamilyWithVariation()
/frameworks/minikin/include/minikin/
DFontFamily.h145 size_t getNumFonts() const { return mFonts.size(); } in getNumFonts()
146 const Font* getFont(size_t index) const { return &mFonts[index]; } in getFont()
147 FontStyle getStyle(size_t index) const { return mFonts[index].style(); } in getStyle()
171 std::vector<Font> mFonts; variable
/frameworks/base/core/java/android/text/
DFontConfig.java177 private final @NonNull Font[] mFonts; field in FontConfig.Family
219 mFonts = fonts; in Family()
235 return mFonts; in getFonts()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java139 private Map<FontInfo, Font> mFonts = new LinkedHashMap<>(); field in FontFamily_Delegate
208 Font cachedFont = mFonts.get(desiredStyle); in getFont()
215 if (mFonts.size() == 1) { in getFont()
217 bestFont = mFonts.keySet().iterator().next(); in getFont()
222 for (FontInfo font : mFonts.keySet()) { in getFont()
496 return mFonts.putIfAbsent(fontInfo, fontInfo.mFont) == null;
DPaint_Delegate.java85 private List<FontInfo> mFonts; field in Paint_Delegate
137 if (mFonts != null) { in getFonts()
138 return mFonts; in getFonts()
150 mFonts = Collections.unmodifiableList(infoList); in getFonts()
152 return mFonts; in getFonts()
1296 mFonts = null; in invalidateFonts()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java346 private FontsContract.FontInfo[] mFonts; field in Typeface.Builder
410 mFonts = fonts; in Builder()
446 if (mFonts != null) { in setTtcIndex()
462 if (mFonts != null) { in setFontVariationSettings()
479 if (mFonts != null) { in setFontVariationSettings()
637 } else if (mFonts != null) { in build()
640 for (FontsContract.FontInfo font : mFonts) { in build()
/frameworks/base/core/java/android/provider/
DFontsContract.java295 private final FontInfo[] mFonts; field in FontsContract.FontFamilyResult
300 mFonts = fonts; in FontFamilyResult()
308 return mFonts; in getFonts()
/frameworks/support/compat/src/main/java/androidx/core/provider/
DFontsContractCompat.java424 private final FontInfo[] mFonts; field in FontsContractCompat.FontFamilyResult
430 mFonts = fonts; in FontFamilyResult()
438 return mFonts; in getFonts()