Home
last modified time | relevance | path

Searched refs:FontCollection (Results 1 – 21 of 21) sorted by relevance

/frameworks/minikin/include/minikin/
DSystemFonts.h32 static std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection()
38 const std::shared_ptr<FontCollection>& fc) { in registerFallback()
43 static void registerDefault(const std::shared_ptr<FontCollection>& fc) { in registerDefault()
52 std::shared_ptr<FontCollection> findFontCollectionInternal(const std::string& familyName) const;
54 const std::shared_ptr<FontCollection>& fc) { in registerFallbackInternal()
58 void registerDefaultInternal(const std::shared_ptr<FontCollection>& fc) { in registerDefaultInternal()
67 std::map<std::string, std::shared_ptr<FontCollection>> mSystemFallbacks;
68 std::shared_ptr<FontCollection> mDefaultFallback;
DFontCollection.h33 class FontCollection {
35 explicit FontCollection(const std::vector<std::shared_ptr<FontFamily>>& typefaces);
36 explicit FontCollection(std::shared_ptr<FontFamily>&& typeface);
64 std::shared_ptr<FontCollection> createCollectionWithVariation(
DMinikinPaint.h30 class FontCollection; variable
50 MinikinPaint(const std::shared_ptr<FontCollection>& font) in MinikinPaint()
74 std::shared_ptr<FontCollection> font;
/frameworks/minikin/libs/minikin/
DFontCollection.cpp46 FontCollection::FontCollection(std::shared_ptr<FontFamily>&& typeface) : mMaxChar(0) { in FontCollection() function in minikin::FontCollection
52 FontCollection::FontCollection(const vector<std::shared_ptr<FontFamily>>& typefaces) : mMaxChar(0) { in FontCollection() function in minikin::FontCollection
56 void FontCollection::init(const vector<std::shared_ptr<FontFamily>>& typefaces) { in init()
126 uint32_t FontCollection::calcFamilyScore(uint32_t ch, uint32_t vs, FamilyVariant variant, in calcFamilyScore()
154 uint32_t FontCollection::calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId, in calcCoverageScore()
215 uint32_t FontCollection::calcLocaleMatchingScore(uint32_t userLocaleListId, in calcLocaleMatchingScore()
231 uint32_t FontCollection::calcVariantMatchingScore(FamilyVariant variant, in calcVariantMatchingScore()
252 const std::shared_ptr<FontFamily>& FontCollection::getFamilyForChar(uint32_t ch, uint32_t vs, in getFamilyForChar()
337 bool FontCollection::hasVariationSelector(uint32_t baseCodepoint, in hasVariationSelector()
371 std::vector<FontCollection::Run> FontCollection::itemize(U16StringPiece text, FontStyle style, in itemize()
[all …]
DSystemFonts.cpp28 std::shared_ptr<FontCollection> SystemFonts::findFontCollectionInternal( in findFontCollectionInternal()
DAndroid.bp29 "FontCollection.cpp",
DLayoutCore.cpp358 std::vector<FontCollection::Run> items = paint.font->itemize( in LayoutPiece()
386 FontCollection::Run& run = items[run_ix]; in LayoutPiece()
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp43 void expectVSGlyphs(const FontCollection* fc, uint32_t codepoint, const std::set<uint32_t>& vsSet) { in expectVSGlyphs()
129 std::shared_ptr<FontCollection> multiAxisFc = buildFontCollection(kMultiAxisFont); in TEST()
130 std::shared_ptr<FontCollection> noAxisFc = buildFontCollection(kNoAxisFont); in TEST()
141 std::shared_ptr<FontCollection> newFc( in TEST()
152 std::shared_ptr<FontCollection> newFc( in TEST()
169 std::shared_ptr<FontCollection> newFc( in TEST()
DSystemFontsTest.cpp33 std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) const { in findFontCollection()
38 const std::shared_ptr<FontCollection>& fc) { in registerFallback()
42 void registerDefault(const std::shared_ptr<FontCollection>& fc) { registerDefaultInternal(fc); } in registerDefault()
DFontCollectionItemizeTest.cpp59 std::vector<FontCollection::Run> itemize(const std::shared_ptr<FontCollection>& collection, in itemize()
86 std::vector<FontCollection::Run> itemize(const std::shared_ptr<FontCollection>& collection, in itemize()
92 std::vector<FontCollection::Run> itemize(const std::shared_ptr<FontCollection>& collection, in itemize()
98 std::vector<FontCollection::Run> itemize(const std::shared_ptr<FontCollection>& collection, in itemize()
104 std::string getFontName(const FontCollection::Run& run) { in getFontName()
735 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
952 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
1518 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
1519 std::shared_ptr<FontCollection> reversedCollection(new FontCollection(reversedFamilies)); in TEST()
1541 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
[all …]
DLayoutCoreTest.cpp41 auto fc = std::make_shared<FontCollection>(families); in buildLayout()
53 auto fc = std::make_shared<FontCollection>(families); in buildLayout()
DLayoutTest.cpp48 std::shared_ptr<FontCollection> mCollection;
DGreedyLineBreakerTest.cpp78 auto fc = std::make_shared<FontCollection>(families); in doLineBreak()
DOptimalLineBreakerTest.cpp79 auto fc = std::make_shared<FontCollection>(families); in doLineBreak()
/frameworks/minikin/tests/perftests/
DFontCollection.cpp39 std::make_shared<FontCollection>(families); in BM_FontCollection_construct()
47 std::make_shared<FontCollection>(getFontFamilies(SYSTEM_FONT_PATH, SYSTEM_FONT_XML)); in BM_FontCollection_hasVariationSelector()
84 std::make_shared<FontCollection>(getFontFamilies(SYSTEM_FONT_PATH, SYSTEM_FONT_XML)); in BM_FontCollection_itemize()
93 std::vector<FontCollection::Run> result; in BM_FontCollection_itemize()
DAndroid.bp26 "FontCollection.cpp",
/frameworks/minikin/tests/util/
DFontTestUtils.h42 inline std::shared_ptr<FontCollection> buildFontCollectionFromXml(const std::string& xmlPath) { in buildFontCollectionFromXml()
43 return std::make_shared<FontCollection>( in buildFontCollectionFromXml()
51 std::shared_ptr<FontCollection> buildFontCollection(const std::string& filePath);
DFontTestUtils.cpp121 std::shared_ptr<FontCollection> buildFontCollection(const std::string& filePath) { in buildFontCollection()
122 return std::make_shared<FontCollection>(buildFontFamily(filePath)); in buildFontCollection()
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp128 result->fFontCollection.reset(new minikin::FontCollection(families)); in createFromFamilies()
191 std::shared_ptr<minikin::FontCollection> collection = std::make_shared<minikin::FontCollection>( in setRobotoTypefaceForTest()
DTypeface.h35 std::shared_ptr<minikin::FontCollection> fFontCollection;
/frameworks/base/native/android/
Dsystem_fonts.cpp247 std::shared_ptr<minikin::FontCollection> fc = in AFontMatcher_match()
249 std::vector<minikin::FontCollection::Run> runs = fc->itemize( in AFontMatcher_match()