Home
last modified time | relevance | path

Searched refs:minikinFont (Results 1 – 10 of 10) sorted by relevance

/frameworks/minikin/libs/minikin/
DHbFontCache.cpp79 void purgeHbFontLocked(const MinikinFont* minikinFont) { in purgeHbFontLocked() argument
81 const int32_t fontId = minikinFont->GetUniqueId(); in purgeHbFontLocked()
87 hb_font_t* getHbFontLocked(const MinikinFont* minikinFont) { in getHbFontLocked() argument
91 if (minikinFont == nullptr) { in getHbFontLocked()
99 const int32_t fontId = minikinFont->GetUniqueId(); in getHbFontLocked()
106 const void* buf = minikinFont->GetFontData(); in getHbFontLocked()
107 size_t size = minikinFont->GetFontSize(); in getHbFontLocked()
110 face = hb_face_create(blob, minikinFont->GetFontIndex()); in getHbFontLocked()
121 for (const FontVariation& variation : minikinFont->GetAxes()) { in getHbFontLocked()
DHbFontCache.h26 void purgeHbFontLocked(const MinikinFont* minikinFont);
27 hb_font_t* getHbFontLocked(const MinikinFont* minikinFont);
DMinikinInternal.cpp35 hb_blob_t* getFontTable(const MinikinFont* minikinFont, uint32_t tag) { in getFontTable() argument
37 hb_font_t* font = getHbFontLocked(minikinFont); in getFontTable()
DFontFamily.cpp242 std::shared_ptr<MinikinFont> minikinFont; in createFamilyWithVariation() local
244 minikinFont = font.typeface->createFontWithVariation(variations); in createFamilyWithVariation()
246 if (minikinFont == nullptr) { in createFamilyWithVariation()
247 minikinFont = font.typeface; in createFamilyWithVariation()
249 fonts.push_back(Font(std::move(minikinFont), font.style)); in createFamilyWithVariation()
DMinikinInternal.h39 hb_blob_t* getFontTable(const MinikinFont* minikinFont, uint32_t tag);
/frameworks/minikin/tests/util/
DFontTestUtils.cpp72 std::shared_ptr<MinikinFont> minikinFont = in getFontFamilies() local
74 fonts.push_back(Font(minikinFont, FontStyle(weight, italic))); in getFontFamilies()
76 std::shared_ptr<MinikinFont> minikinFont = in getFontFamilies() local
78 fonts.push_back(Font(minikinFont, FontStyle(weight, italic))); in getFontFamilies()
/frameworks/minikin/tests/unittest/
DHbFontCacheTest.cpp70 std::shared_ptr<MinikinFontForTest> minikinFont( in TEST_F() local
74 hb_font_t* font = getHbFontLocked(minikinFont.get()); in TEST_F()
88 font = getHbFontLocked(minikinFont.get()); in TEST_F()
DFontFamilyTest.cpp538 std::shared_ptr<MinikinFont> minikinFont(new MinikinFontForTest(kVsTestFont)); in TEST_F() local
540 new FontFamily(std::vector<Font>{ Font(minikinFont, FontStyle()) })); in TEST_F()
589 std::shared_ptr<MinikinFont> minikinFont( in TEST_F() local
592 std::vector<Font>{ Font(minikinFont, FontStyle()) })); in TEST_F()
/frameworks/minikin/tests/perftests/
DFontFamily.cpp24 std::shared_ptr<MinikinFontForTest> minikinFont = in BM_FontFamily_create() local
29 std::vector<Font>({Font(minikinFont, FontStyle())})); in BM_FontFamily_create()
/frameworks/base/core/jni/android/graphics/
DFontFamily.cpp120 std::shared_ptr<minikin::MinikinFont> minikinFont = in addSkTypeface() local
129 if (!minikin::FontFamily::analyzeStyle(minikinFont, &os2Weight, &os2Italic)) { in addSkTypeface()
142 builder->fonts.push_back(minikin::Font(minikinFont, minikin::FontStyle(weight, italic))); in addSkTypeface()