Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/fonts/
DFontFamily.java69 private final ArrayList<Font> mFonts = new ArrayList<>(); field in FontFamily.Builder
80 mFonts.add(font); in Builder()
102 mFonts.add(font); in addFont()
118 for (int i = 0; i < mFonts.size(); ++i) { in build()
119 nAddFont(builderPtr, mFonts.get(i).getNativePtr()); in build()
122 final FontFamily family = new FontFamily(mFonts, ptr); in build()
140 private final ArrayList<Font> mFonts; field in FontFamily
145 mFonts = fonts; in FontFamily()
156 return mFonts.get(index); in getFont()
165 return mFonts.size(); in getSize()
/frameworks/minikin/include/minikin/
DFontFamily.h47 size_t getNumFonts() const { return mFonts.size(); } in getNumFonts()
48 const Font* getFont(size_t index) const { return &mFonts[index]; } in getFont()
49 FontStyle getStyle(size_t index) const { return mFonts[index].style(); } in getStyle()
74 std::vector<Font> mFonts; variable
/frameworks/minikin/libs/minikin/
DFontFamily.cpp118 mFonts(std::move(fonts)), in FontFamily()
122 MINIKIN_ASSERT(!mFonts.empty(), "FontFamily must contain at least one font."); in FontFamily()
147 const Font* bestFont = &mFonts[0]; in getClosestMatch()
149 for (size_t i = 1; i < mFonts.size(); i++) { in getClosestMatch()
150 const Font& font = mFonts[i]; in getClosestMatch()
170 for (size_t i = 0; i < mFonts.size(); ++i) { in computeCoverage()
171 std::unordered_set<AxisTag> supportedAxes = mFonts[i].getSupportedAxes(); in computeCoverage()
220 for (const Font& font : mFonts) { in createFamilyWithVariation()
DLayoutCore.cpp392 font_ix = mFonts.size(); in LayoutPiece()
393 mFonts.push_back(fakedFont); in LayoutPiece()
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java62 private Map<FontInfo, Font> mFonts = new LinkedHashMap<>(); field in FontFamily_Builder_Delegate
131 Font cachedFont = mFonts.get(desiredStyle);
138 if (mFonts.size() == 1) {
140 bestFont = mFonts.keySet().iterator().next();
144 for (FontInfo font : mFonts.keySet()) {
182 mFonts.putIfAbsent(fontInfo, fontInfo.mFont);
/frameworks/base/core/java/android/text/
DFontConfig.java183 private final @NonNull Font[] mFonts; field in FontConfig.Family
226 mFonts = fonts; in Family()
244 return mFonts; in getFonts()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java138 private Map<FontInfo, Font> mFonts = new LinkedHashMap<>(); field in FontFamily_Delegate
207 Font cachedFont = mFonts.get(desiredStyle); in getFont()
214 if (mFonts.size() == 1) { in getFont()
216 bestFont = mFonts.keySet().iterator().next(); in getFont()
220 for (FontInfo font : mFonts.keySet()) { in getFont()
417 return mFonts.putIfAbsent(fontInfo, fontInfo.mFont) == null;
DPaint_Delegate.java86 private List<FontInfo> mFonts; field in Paint_Delegate
139 if (mFonts != null) { in getFonts()
140 return mFonts; in getFonts()
153 mFonts = Collections.unmodifiableList(infoList); in getFonts()
155 return mFonts; in getFonts()
1304 mFonts = null; in invalidateFonts()
/frameworks/base/core/java/android/provider/
DFontsContract.java292 private final FontInfo[] mFonts; field in FontsContract.FontFamilyResult
297 mFonts = fonts; in FontFamilyResult()
305 return mFonts; in getFonts()