Home
last modified time | relevance | path

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

/frameworks/minikin/libs/minikin/
DHbFontCache.cpp94 void purgeHbFontLocked(const MinikinFont* minikinFont) { in purgeHbFontLocked() argument
96 const int32_t fontId = minikinFont->GetUniqueId(); in purgeHbFontLocked()
102 hb_font_t* getHbFontLocked(MinikinFont* minikinFont) { in getHbFontLocked() argument
106 if (minikinFont == nullptr) { in getHbFontLocked()
114 const int32_t fontId = minikinFont->GetUniqueId(); in getHbFontLocked()
121 const void* buf = minikinFont->GetFontData(); in getHbFontLocked()
123 face = hb_face_create_for_tables(referenceTable, minikinFont, nullptr); in getHbFontLocked()
125 size_t size = minikinFont->GetFontSize(); in getHbFontLocked()
128 face = hb_face_create(blob, minikinFont->GetFontIndex()); in getHbFontLocked()
DHbFontCache.h26 void purgeHbFontLocked(const MinikinFont* minikinFont);
27 hb_font_t* getHbFontLocked(MinikinFont* minikinFont);
DMinikinInternal.cpp82 hb_blob_t* getFontTable(MinikinFont* minikinFont, uint32_t tag) { in getFontTable() argument
84 hb_font_t* font = getHbFontLocked(minikinFont); in getFontTable()
DMinikinInternal.h48 hb_blob_t* getFontTable(MinikinFont* minikinFont, uint32_t tag);
DFontFamily.cpp204 MinikinFont* minikinFont = getClosestMatch(defaultStyle).font; in hasGlyph() local
205 hb_font_t* font = getHbFontLocked(minikinFont); in hasGlyph()
/frameworks/minikin/tests/
DHbFontCacheTest.cpp66 MinikinFontForTest minikinFont(kTestFontDir "Regular.ttf"); in TEST_F() local
68 hb_font_t* font = getHbFontLocked(&minikinFont); in TEST_F()
82 font = getHbFontLocked(&minikinFont); in TEST_F()
DFontFamilyTest.cpp353 MinikinAutoUnref<MinikinFontForTest> minikinFont(new MinikinFontForTest(kVsTestFont)); in TEST_F() local
355 family->addFont(minikinFont.get()); in TEST_F()
406 MinikinAutoUnref<MinikinFontForTest> minikinFont(new MinikinFontForTest(testCase.fontPath)); in TEST_F() local
408 family->addFont(minikinFont.get()); in TEST_F()
/frameworks/base/core/jni/android/graphics/
DFontFamily.cpp58 MinikinFont* minikinFont = new MinikinFontSkia(face, fontData, fontSize, ttcIndex); in addSkTypeface() local
59 bool result = family->addFont(minikinFont); in addSkTypeface()
60 minikinFont->Unref(); in addSkTypeface()
181 MinikinFont* minikinFont = new MinikinFontSkia(face, fontPtr, (size_t)fontSize, ttcIndex); in FontFamily_addFontWeightStyle() local
182 fontFamily->addFont(minikinFont, FontStyle(weight / 100, isItalic)); in FontFamily_addFontWeightStyle()
183 minikinFont->Unref(); in FontFamily_addFontWeightStyle()