Home
last modified time | relevance | path

Searched refs:FakedFont (Results 1 – 11 of 11) sorted by relevance

/frameworks/minikin/include/minikin/
DLayoutCore.h52 const std::vector<FakedFont>& fonts() const { return mFonts; } in fonts()
57 const FakedFont& fontAt(int glyphPos) const { return mFonts[mFontIndices[glyphPos]]; } in fontAt()
84 std::vector<FakedFont> mFonts;
DFont.h238 struct FakedFont { struct
239 inline bool operator==(const FakedFont& o) const {
242 inline bool operator!=(const FakedFont& o) const { return !(*this == o); }
DFontFamily.h61 FakedFont getClosestMatch(FontStyle style) const;
62 FakedFont getVariationFamilyAdjustment(FontStyle style) const;
DLayout.h39 LayoutGlyph(FakedFont font, uint32_t glyph_id, uint32_t cluster, float x, float y) in LayoutGlyph()
41 FakedFont font;
DFontCollection.h158 FakedFont getBestFont(U16StringPiece textBuf, const Run& run, FontStyle style);
178 FakedFont baseFontFaked(FontStyle style);
/frameworks/minikin/libs/minikin/
DFontFamily.cpp305 FakedFont FontFamily::getClosestMatch(FontStyle style) const { in getClosestMatch()
321 return FakedFont{mFonts[bestIndex], computeFakery(style, bestFont->style())}; in getClosestMatch()
324 FakedFont FontFamily::getVariationFamilyAdjustment(FontStyle style) const { in getVariationFamilyAdjustment()
328 return FakedFont{mFonts[0], FontFakery(false, italic, style.weight(), -1)}; in getVariationFamilyAdjustment()
330 return FakedFont{mFonts[0], FontFakery(false, false, style.weight(), italic ? 1 : 0)}; in getVariationFamilyAdjustment()
332 return FakedFont{mFonts[italic ? 1 : 0], FontFakery(false, false, style.weight(), -1)}; in getVariationFamilyAdjustment()
334 return FakedFont{mFonts[0], FontFakery()}; in getVariationFamilyAdjustment()
DFontCollection.cpp657 FakedFont font = getFamilyAt(i)->getClosestMatch(paint.fontStyle); in getReferenceExtentForLocale()
684 FakedFont font = family.getClosestMatch(paint.fontStyle); in getReferenceExtentForLocale()
695 FakedFont font = family.getClosestMatch(paint.fontStyle); in getReferenceExtentForLocale()
704 FakedFont font = getFamilyAt(0)->getClosestMatch(paint.fontStyle); in getReferenceExtentForLocale()
864 FakedFont FontCollection::getBestFont(U16StringPiece text, const Run& run, FontStyle style) { in getBestFont()
886 FakedFont FontCollection::baseFontFaked(FontStyle style) { in baseFontFaked()
DLayoutCore.cpp319 FakedFont fakedFont = paint.font->getBestFont(substr, run, paint.fontStyle); in LayoutPiece()
501 const FakedFont& fakedFont = layout.fontAt(i); in calculateBounds()
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp865 FakedFont closest = family->getClosestMatch(testCase.wantedStyle); in TEST_F()
DFontCollectionItemizeTest.cpp60 FakedFont fakedFont;
/frameworks/base/libs/hwui/jni/
DPaint.cpp612 minikin::FakedFont baseFont = typeface->fFontCollection->baseFontFaked(typeface->fStyle); in getMetricsInternal()