Home
last modified time | relevance | path

Searched refs:MinikinFont (Results 1 – 24 of 24) sorted by relevance

/frameworks/minikin/include/minikin/
DFont.h73 Builder(const std::shared_ptr<MinikinFont>& typeface) : mTypeface(typeface) {} in Builder()
105 std::shared_ptr<MinikinFont> mTypeface;
114 using TypefaceLoader = std::shared_ptr<MinikinFont>(BufferReader reader);
119 using TypefaceWriter = void(BufferWriter* writer, const MinikinFont* typeface);
139 const std::shared_ptr<MinikinFont>& typeface() const;
148 Font(std::shared_ptr<MinikinFont>&& typeface, FontStyle style, HbFontUniquePtr&& baseFont, in Font()
165 static HbFontUniquePtr prepareFont(const std::shared_ptr<MinikinFont>& typeface);
169 mutable std::shared_ptr<MinikinFont> mTypeface GUARDED_BY(mTypefaceMutex);
DMinikinFont.h35 class MinikinFont {
37 MinikinFont() {} in MinikinFont() function
39 virtual ~MinikinFont() {} in ~MinikinFont()
74 virtual std::shared_ptr<MinikinFont> createFontWithVariation( in createFontWithVariation()
/frameworks/minikin/libs/minikin/
DFont.cpp54 const std::shared_ptr<MinikinFont>& Font::typeface() const { in typeface()
76 HbFontUniquePtr Font::prepareFont(const std::shared_ptr<MinikinFont>& typeface) { in prepareFont()
101 HbBlob os2Table(font, MinikinFont::MakeTag('O', 'S', '/', '2')); in analyzeStyle()
116 HbBlob fvarTable(baseFont(), MinikinFont::MakeTag('f', 'v', 'a', 'r')); in getSupportedAxes()
DFontFileParser.cpp178 HbBlob headTable(mFace, MinikinFont::MakeTag('h', 'e', 'a', 'd')); in getFontRevision()
214 HbBlob cffTable(mFace, MinikinFont::MakeTag('C', 'F', 'F', ' ')); in isPostScriptType1Font()
215 HbBlob cff2Table(mFace, MinikinFont::MakeTag('C', 'F', 'F', '2')); in isPostScriptType1Font()
DBoundsCache.cpp35 MinikinFont* minikinFont = font.font->typeface().get(); in getBounds()
DFontFamily.cpp171 HbBlob cmapTable(font->baseFont(), MinikinFont::MakeTag('c', 'm', 'a', 'p')); in computeCoverage()
240 std::shared_ptr<MinikinFont> minikinFont; in createFamilyWithVariation()
DMeasuredText.cpp223 MinikinFont* minikinFont = font.font->typeface().get(); in operator ()()
DLayoutCore.cpp50 const MinikinFont* font;
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp142 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST()
152 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST()
153 {MinikinFont::MakeTag('w', 'g', 'h', 't'), 1.0f}}; in TEST()
163 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST()
169 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST()
170 {MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST()
229 copied[0]->getSupportedTags().count(MinikinFont::MakeTag('w', 'd', 't', 'h'))); in TEST()
231 copied[0]->getSupportedTags().count(MinikinFont::MakeTag('w', 'g', 'h', 't'))); in TEST()
DFontFamilyTest.cpp624 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F()
633 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F()
634 {MinikinFont::MakeTag('w', 'g', 'h', 't'), 1.0f}}; in TEST_F()
643 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST_F()
649 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F()
650 {MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST_F()
768 std::vector<std::shared_ptr<MinikinFont>> dummyFonts; in TEST_F()
771 std::shared_ptr<MinikinFont> dummyFont( in TEST_F()
DFontCollectionItemizeTest.cpp948 std::unordered_map<MinikinFont*, int> fontLocaleIdxMap; in TEST()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.h31 class ANDROID_API MinikinFontSkia : public minikin::MinikinFont {
63 std::shared_ptr<minikin::MinikinFont> createFontWithVariation(
71 static void populateSkFont(SkFont*, const minikin::MinikinFont* font,
DMinikinUtils.h71 const minikin::MinikinFont* curFont = nullptr; in forFontRun()
75 const minikin::MinikinFont* nextFont = layout.getFont(i)->typeface().get(); in forFontRun()
DMinikinSkia.cpp44 static void MinikinFontSkia_SetSkiaFont(const minikin::MinikinFont* font, SkFont* skFont, in MinikinFontSkia_SetSkiaFont()
126 std::shared_ptr<minikin::MinikinFont> MinikinFontSkia::createFontWithVariation( in createFontWithVariation()
173 void MinikinFontSkia::populateSkFont(SkFont* skFont, const MinikinFont* font, in populateSkFont()
DTypeface.cpp137 const minikin::MinikinFont* mf = in createFromFamilies()
188 std::shared_ptr<minikin::MinikinFont> font = in setRobotoTypefaceForTest()
DCanvas.cpp153 const minikin::MinikinFont* minikinFont = font.typeface().get(); in drawGlyphs()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h33 class FreeTypeMinikinFontForTest : public MinikinFont {
67 void writeFreeTypeMinikinFontForTest(BufferWriter* writer, const MinikinFont* typeface);
DFreeTypeMinikinFontForTest.cpp115 void writeFreeTypeMinikinFontForTest(BufferWriter* writer, const MinikinFont* typeface) { in writeFreeTypeMinikinFontForTest()
119 std::shared_ptr<MinikinFont> loadFreeTypeMinikinFontForTest(BufferReader reader) { in loadFreeTypeMinikinFontForTest()
DFontTestUtils.cpp95 std::shared_ptr<MinikinFont> minikinFont = in getFontFamilies()
99 std::shared_ptr<MinikinFont> minikinFont = in getFontFamilies()
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp104 std::shared_ptr<minikin::MinikinFont> minikinFont = fonts::createMinikinFontSkia( in Font_Builder_build()
140 std::shared_ptr<minikin::MinikinFont> newMinikinFont = std::make_shared<MinikinFontSkia>( in Font_Builder_clone()
208 const std::shared_ptr<minikin::MinikinFont>& minikinFont = font->font->typeface(); in Font_newByteBuffer()
235 const std::shared_ptr<minikin::MinikinFont>& minikinFont = font->font->typeface(); in Font_getFontPath()
274 const std::shared_ptr<minikin::MinikinFont>& minikinFont = font->font->typeface(); in Font_getIndex()
288 const std::shared_ptr<minikin::MinikinFont>& minikinFont = font->font->typeface(); in Font_getAxisCount()
303 const std::shared_ptr<minikin::MinikinFont>& minikinFont = font->font->typeface(); in Font_getAxisInfo()
447 std::shared_ptr<minikin::MinikinFont> createMinikinFontSkia( in createMinikinFontSkia()
DFont.h32 std::shared_ptr<minikin::MinikinFont> createMinikinFontSkia(
/frameworks/base/libs/hwui/jni/
DTypeface.cpp207 static std::shared_ptr<minikin::MinikinFont> loadMinikinFontSkia(minikin::BufferReader);
222 static std::shared_ptr<minikin::MinikinFont> loadMinikinFontSkia(minikin::BufferReader reader) { in loadMinikinFontSkia()
262 std::shared_ptr<minikin::MinikinFont> minikinFont = fonts::createMinikinFontSkia( in loadMinikinFontSkia()
272 const minikin::MinikinFont* typeface) { in writeMinikinFontSkia()
DFontFamily.cpp134 std::shared_ptr<minikin::MinikinFont> minikinFont = in addSkTypeface()
/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp59 std::shared_ptr<minikin::MinikinFont> font = in buildFamily()