/frameworks/minikin/include/minikin/ |
D | Font.h | 73 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);
|
D | MinikinFont.h | 35 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/ |
D | Font.cpp | 54 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()
|
D | FontFileParser.cpp | 178 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()
|
D | BoundsCache.cpp | 35 MinikinFont* minikinFont = font.font->typeface().get(); in getBounds()
|
D | FontFamily.cpp | 171 HbBlob cmapTable(font->baseFont(), MinikinFont::MakeTag('c', 'm', 'a', 'p')); in computeCoverage() 240 std::shared_ptr<MinikinFont> minikinFont; in createFamilyWithVariation()
|
D | MeasuredText.cpp | 223 MinikinFont* minikinFont = font.font->typeface().get(); in operator ()()
|
D | LayoutCore.cpp | 50 const MinikinFont* font;
|
/frameworks/minikin/tests/unittest/ |
D | FontCollectionTest.cpp | 142 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()
|
D | FontFamilyTest.cpp | 624 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()
|
D | FontCollectionItemizeTest.cpp | 948 std::unordered_map<MinikinFont*, int> fontLocaleIdxMap; in TEST()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinSkia.h | 31 class ANDROID_API MinikinFontSkia : public minikin::MinikinFont { 63 std::shared_ptr<minikin::MinikinFont> createFontWithVariation( 71 static void populateSkFont(SkFont*, const minikin::MinikinFont* font,
|
D | MinikinUtils.h | 71 const minikin::MinikinFont* curFont = nullptr; in forFontRun() 75 const minikin::MinikinFont* nextFont = layout.getFont(i)->typeface().get(); in forFontRun()
|
D | MinikinSkia.cpp | 44 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()
|
D | Typeface.cpp | 137 const minikin::MinikinFont* mf = in createFromFamilies() 188 std::shared_ptr<minikin::MinikinFont> font = in setRobotoTypefaceForTest()
|
D | Canvas.cpp | 153 const minikin::MinikinFont* minikinFont = font.typeface().get(); in drawGlyphs()
|
/frameworks/minikin/tests/util/ |
D | FreeTypeMinikinFontForTest.h | 33 class FreeTypeMinikinFontForTest : public MinikinFont { 67 void writeFreeTypeMinikinFontForTest(BufferWriter* writer, const MinikinFont* typeface);
|
D | FreeTypeMinikinFontForTest.cpp | 115 void writeFreeTypeMinikinFontForTest(BufferWriter* writer, const MinikinFont* typeface) { in writeFreeTypeMinikinFontForTest() 119 std::shared_ptr<MinikinFont> loadFreeTypeMinikinFontForTest(BufferReader reader) { in loadFreeTypeMinikinFontForTest()
|
D | FontTestUtils.cpp | 95 std::shared_ptr<MinikinFont> minikinFont = in getFontFamilies() 99 std::shared_ptr<MinikinFont> minikinFont = in getFontFamilies()
|
/frameworks/base/libs/hwui/jni/fonts/ |
D | Font.cpp | 104 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()
|
D | Font.h | 32 std::shared_ptr<minikin::MinikinFont> createMinikinFontSkia(
|
/frameworks/base/libs/hwui/jni/ |
D | Typeface.cpp | 207 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()
|
D | FontFamily.cpp | 134 std::shared_ptr<minikin::MinikinFont> minikinFont = in addSkTypeface()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 59 std::shared_ptr<minikin::MinikinFont> font = in buildFamily()
|