/external/skia/tools/ |
D | test_font_index.cpp | 13 LiberationMonoNormalMetrics, "Toy Liberation Mono", SkTypeface::kNormal, nullptr 17 LiberationMonoBoldMetrics, "Toy Liberation Mono", SkTypeface::kBold, nullptr 21 LiberationMonoItalicMetrics, "Toy Liberation Mono", SkTypeface::kItalic, nullptr 25 LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkTypeface::kBoldItalic, nullptr 29 LiberationSansNormalMetrics, "Toy Liberation Sans", SkTypeface::kNormal, nullptr 33 LiberationSansBoldMetrics, "Toy Liberation Sans", SkTypeface::kBold, nullptr 37 LiberationSansItalicMetrics, "Toy Liberation Sans", SkTypeface::kItalic, nullptr 41 LiberationSansBoldItalicMetrics, "Toy Liberation Sans", SkTypeface::kBoldItalic, nullptr 45 LiberationSerifNormalMetrics, "Toy Liberation Serif", SkTypeface::kNormal, nullptr 49 LiberationSerifBoldMetrics, "Toy Liberation Serif", SkTypeface::kBold, nullptr [all …]
|
D | test_font_data.cpp | 8517 CourierNewkNormalMetrics, "Courier New", SkTypeface::kNormal, nullptr 8521 CourierNewkBoldMetrics, "Courier New", SkTypeface::kBold, nullptr 8525 CourierNewkItalicMetrics, "Courier New", SkTypeface::kItalic, nullptr 8529 CourierNewkBoldItalicMetrics, "Courier New", SkTypeface::kBoldItalic, nullptr 8533 LiberationSanskNormalMetrics, "Liberation Sans", SkTypeface::kNormal, nullptr 8537 LiberationSanskBoldMetrics, "Liberation Sans", SkTypeface::kBold, nullptr 8541 LiberationSanskItalicMetrics, "Liberation Sans", SkTypeface::kItalic, nullptr 8545 LiberationSanskBoldItalicMetrics, "Liberation Sans", SkTypeface::kBoldItalic, nullptr 8549 … HiraginoMaruGothicProkNormalMetrics, "Hiragino Maru Gothic Pro", SkTypeface::kNormal, nullptr 8553 PapyruskNormalMetrics, "Papyrus", SkTypeface::kNormal, nullptr [all …]
|
D | create_test_font.cpp | 26 SkTypeface::Style fStyle; 31 {"monospace", SkTypeface::kNormal, "Liberation Mono", "LiberationMono-Regular.ttf", -1}, 32 {"monospace", SkTypeface::kBold, "Liberation Mono", "LiberationMono-Bold.ttf", -1}, 33 {"monospace", SkTypeface::kItalic, "Liberation Mono", "LiberationMono-Italic.ttf", -1}, 34 {"monospace", SkTypeface::kBoldItalic, "Liberation Mono", "LiberationMono-BoldItalic.ttf", -1}, 35 {"sans-serif", SkTypeface::kNormal, "Liberation Sans", "LiberationSans-Regular.ttf", -1}, 36 {"sans-serif", SkTypeface::kBold, "Liberation Sans", "LiberationSans-Bold.ttf", -1}, 37 {"sans-serif", SkTypeface::kItalic, "Liberation Sans", "LiberationSans-Italic.ttf", -1}, 38 {"sans-serif", SkTypeface::kBoldItalic, "Liberation Sans", "LiberationSans-BoldItalic.ttf", -1}, 39 {"serif", SkTypeface::kNormal, "Liberation Serif", "LiberationSerif-Regular.ttf", -1}, [all …]
|
/external/skia/src/core/ |
D | SkTypeface.cpp | 18 SkTypeface::SkTypeface(const SkFontStyle& style, SkFontID fontID, bool isFixedPitch) in SkTypeface() function in SkTypeface 21 SkTypeface::~SkTypeface() { } in ~SkTypeface() 24 extern void WhitelistSerializeTypeface(const SkTypeface*, SkWStream* ); 30 SkTypeface* (*gCreateTypefaceDelegate)(const char [], SkTypeface::Style ) = nullptr; 31 void (*gSerializeTypefaceDelegate)(const SkTypeface*, SkWStream* ) = SK_TYPEFACE_DELEGATE; 32 SkTypeface* (*gDeserializeTypefaceDelegate)(SkStream* ) = nullptr; 36 class SkEmptyTypeface : public SkTypeface { 40 SkEmptyTypeface() : SkTypeface(SkFontStyle(), 0, true) { } in SkEmptyTypeface() 60 class EmptyLocalizedStrings : public SkTypeface::LocalizedStrings { 62 bool next(SkTypeface::LocalizedString*) override { return false; } in next() [all …]
|
D | SkFontMgr.cpp | 15 class SkTypeface; 23 SkTypeface* createTypeface(int index) override { in createTypeface() 27 SkTypeface* matchStyle(const SkFontStyle&) override { in matchStyle() 52 virtual SkTypeface* onMatchFamilyStyle(const char[], in onMatchFamilyStyle() 56 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 63 virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, in onMatchFaceStyle() argument 67 SkTypeface* onCreateFromData(SkData*, int) const override { in onCreateFromData() 70 SkTypeface* onCreateFromStream(SkStreamAsset* stream, int) const override { in onCreateFromStream() 74 SkTypeface* onCreateFromFile(const char[], int) const override { in onCreateFromFile() 77 SkTypeface* onLegacyCreateTypeface(const char [], unsigned) const override { in onLegacyCreateTypeface() [all …]
|
D | SkTypefacePriv.h | 19 static inline SkTypeface* ref_or_default(SkTypeface* face) { in ref_or_default() 20 return face ? SkRef(face) : SkTypeface::RefDefault(); in ref_or_default() 27 class SkAutoResolveDefaultTypeface : public SkAutoTUnref<SkTypeface> { 29 SkAutoResolveDefaultTypeface() : INHERITED(SkTypeface::RefDefault()) {} in SkAutoResolveDefaultTypeface() 31 SkAutoResolveDefaultTypeface(SkTypeface* face) in SkAutoResolveDefaultTypeface() 35 typedef SkAutoTUnref<SkTypeface> INHERITED;
|
D | SkTypefaceCache.h | 34 typedef bool(*FindProc)(SkTypeface*, const SkFontStyle&, void* context); 42 void add(SkTypeface*, const SkFontStyle& requested); 49 SkTypeface* findByProcAndRef(FindProc proc, void* ctx) const; 67 static void Add(SkTypeface*, const SkFontStyle& requested); 68 static SkTypeface* FindByProcAndRef(FindProc proc, void* ctx); 82 SkTypeface* fFace;
|
D | SkFont.cpp | 12 static SkTypeface* ref_or_default(SkTypeface* face) { in ref_or_default() 13 return face ? SkRef(face) : SkTypeface::RefDefault(); in ref_or_default() 16 SkFont::SkFont(SkTypeface* face, SkScalar size, SkScalar scaleX, SkScalar skewX, MaskType mt, in SkFont() 31 SkFont* SkFont::Create(SkTypeface* face, SkScalar size, SkScalar scaleX, SkScalar skewX, in Create() 46 SkFont* SkFont::Create(SkTypeface* face, SkScalar size, MaskType mt, uint32_t flags) { in Create() 90 SkTypeface::Encoding typeface_encoding; in textToGlyphs() 93 typeface_encoding = SkTypeface::kUTF8_Encoding; in textToGlyphs() 96 typeface_encoding = SkTypeface::kUTF16_Encoding; in textToGlyphs() 99 typeface_encoding = SkTypeface::kUTF32_Encoding; in textToGlyphs()
|
D | SkTypefaceCache.cpp | 28 void SkTypefaceCache::add(SkTypeface* face, const SkFontStyle& requestedStyle) { in add() 38 SkTypeface* SkTypefaceCache::findByProcAndRef(FindProc proc, void* ctx) const { in findByProcAndRef() 42 SkTypeface* currFace = curr->fFace; in findByProcAndRef() 55 SkTypeface* face = fArray[i].fFace; in purge() 87 void SkTypefaceCache::Add(SkTypeface* face, const SkFontStyle& requestedStyle) { in Add() 92 SkTypeface* SkTypefaceCache::FindByProcAndRef(FindProc proc, void* ctx) { in FindByProcAndRef() 94 SkTypeface* typeface = Get().findByProcAndRef(proc, ctx); in FindByProcAndRef() 106 static bool DumpProc(SkTypeface* face, const SkFontStyle& s, void* ctx) { in DumpProc()
|
/external/skia/include/ports/ |
D | SkFontMgr.h | 20 class SkTypeface; variable 26 virtual SkTypeface* createTypeface(int index) = 0; 27 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0; 32 SkTypeface* matchStyleCSS3(const SkFontStyle& pattern); 68 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 85 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 89 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const; 96 SkTypeface* createFromData(SkData*, int ttcIndex = 0) const; 103 SkTypeface* createFromStream(SkStreamAsset*, int ttcIndex = 0) const; 149 SkTypeface* createFromStream(SkStreamAsset*, const FontParameters&) const; [all …]
|
D | SkFontMgr_indirect.h | 41 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], 44 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 50 virtual SkTypeface* onMatchFaceStyle(const SkTypeface* familyMember, 53 SkTypeface* onCreateFromStream(SkStreamAsset* stream, int ttcIndex) const override; 54 SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override; 55 SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const override; 57 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], 61 SkTypeface* createTypefaceFromFontId(const SkFontIdentity& fontId) const; 69 SkTypeface* fTypeface; // value: weak ref to typeface
|
/external/skia/tests/ |
D | TypefaceTest.cpp | 13 SkAutoTUnref<SkTypeface> t1(SkTypeface::CreateFromName(nullptr, SkTypeface::kNormal)); in DEF_TEST() 14 SkAutoTUnref<SkTypeface> t2(SkTypeface::RefDefault(SkTypeface::kNormal)); in DEF_TEST() 16 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), t2.get())); in DEF_TEST() 17 REPORTER_ASSERT(reporter, SkTypeface::Equal(0, t1.get())); in DEF_TEST() 18 REPORTER_ASSERT(reporter, SkTypeface::Equal(0, t2.get())); in DEF_TEST() 19 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), 0)); in DEF_TEST() 20 REPORTER_ASSERT(reporter, SkTypeface::Equal(t2.get(), 0)); in DEF_TEST() 23 … SkAutoTUnref<SkTypeface> t3(SkTypeface::CreateFromName("non-existent-font", SkTypeface::kNormal)); in DEF_TEST()
|
D | FontHostTest.cpp | 34 static void test_unitsPerEm(skiatest::Reporter* reporter, SkTypeface* face) { in test_unitsPerEm() 53 static void test_countGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { in test_countGlyphs() 80 SkTypeface::Encoding typefaceEncoding; 83 { utf8Chars, 8, sizeof(utf8Chars), SkTypeface::kUTF8_Encoding, "Simple UTF-8" }, 84 { utf16Chars, 8, sizeof(utf16Chars), SkTypeface::kUTF16_Encoding, "Simple UTF-16" }, 85 { utf32Chars, 8, sizeof(utf32Chars), SkTypeface::kUTF32_Encoding, "Simple UTF-32" }, 89 static void test_charsToGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { in test_charsToGlyphs() 157 SkAutoTUnref<SkTypeface> typeface(GetResourceAsTypeface("/fonts/SpiderSymbol.ttf")); in test_symbolfont() 172 static void test_tables(skiatest::Reporter* reporter, SkTypeface* face) { in test_tables() 226 SkAutoTUnref<SkTypeface> face(SkTypeface::CreateFromName(gNames[i], SkTypeface::kNormal)); in test_tables() [all …]
|
D | FontHostStreamTest.cpp | 72 SkTypeface* fTypeface = SkTypeface::CreateFromName("Georgia", in DEF_TEST() 73 SkTypeface::kNormal); in DEF_TEST() 92 SkTypeface* origTypeface = paint.getTypeface(); in DEF_TEST() 93 SkAutoTUnref<SkTypeface> aur; in DEF_TEST() 95 aur.reset(SkTypeface::RefDefault()); in DEF_TEST() 101 SkTypeface* streamTypeface = SkTypeface::CreateFromStream(fontData.detach()); in DEF_TEST()
|
/external/skia/src/utils/ |
D | SkWhitelistTypefaces.cpp | 20 extern void WhitelistSerializeTypeface(const SkTypeface*, SkWStream* ); 21 extern SkTypeface* WhitelistDeserializeTypeface(SkStream* ); 31 static bool font_name_is_local(const char* fontName, SkTypeface::Style style) { in font_name_is_local() 35 SkTypeface* defaultFace = SkTypeface::CreateFromName(nullptr, style); in font_name_is_local() 36 SkTypeface* foundFace = SkTypeface::CreateFromName(fontName, style); in font_name_is_local() 40 static int whitelist_name_index(const SkTypeface* tf) { in whitelist_name_index() 43 SkAutoTUnref<SkTypeface::LocalizedStrings> nameIter( in whitelist_name_index() 45 SkTypeface::LocalizedString familyNameLocalized; in whitelist_name_index() 56 SkAutoTUnref<SkTypeface::LocalizedStrings> debugIter( in whitelist_name_index() 65 static uint32_t compute_checksum(const SkTypeface* tf) { in compute_checksum() [all …]
|
/external/skia/include/core/ |
D | SkTypeface.h | 42 class SK_API SkTypeface : public SkWeakRefCnt { 89 static SkFontID UniqueID(const SkTypeface* face); 94 static bool Equal(const SkTypeface* facea, const SkTypeface* faceb); 100 static SkTypeface* RefDefault(Style style = SkTypeface::kNormal); 111 static SkTypeface* CreateFromName(const char familyName[], Style style); 123 static SkTypeface* CreateFromTypeface(const SkTypeface* family, Style s); 128 static SkTypeface* CreateFromFile(const char path[], int index = 0); 134 static SkTypeface* CreateFromStream(SkStreamAsset* stream, int index = 0); 140 static SkTypeface* CreateFromFontData(SkFontData*); 153 static SkTypeface* Deserialize(SkStream*); [all …]
|
D | SkFont.h | 15 class SkTypeface; variable 120 static SkFont* Create(SkTypeface*, SkScalar size, MaskType, uint32_t flags); 121 static SkFont* Create(SkTypeface*, SkScalar size, SkScalar scaleX, SkScalar skewX, 130 SkTypeface* getTypeface() const { return fTypeface; } in getTypeface() 155 SkFont(SkTypeface*, SkScalar size, SkScalar scaleX, SkScalar skewX, MaskType, uint32_t flags); 158 SkTypeface* fTypeface;
|
/external/skia/gm/ |
D | typeface.cpp | 41 SkTypeface* face = paint.getTypeface(); in drawKernText() 74 SkTypeface::Style fStyle; 76 { "sans-serif", SkTypeface::kNormal }, 77 { "sans-serif", SkTypeface::kBold }, 78 { "sans-serif", SkTypeface::kItalic }, 79 { "sans-serif", SkTypeface::kBoldItalic }, 80 { "serif", SkTypeface::kNormal }, 81 { "serif", SkTypeface::kBold }, 82 { "serif", SkTypeface::kItalic }, 83 { "serif", SkTypeface::kBoldItalic }, [all …]
|
D | verttext2.cpp | 35 fProp = SkTypeface::CreateFromName(sk_tool_utils::platform_font_name("sans-serif"), in onOnceBeforeDraw() 36 SkTypeface::kNormal); in onOnceBeforeDraw() 37 fMono = SkTypeface::CreateFromName(sk_tool_utils::platform_font_name("monospace"), in onOnceBeforeDraw() 38 SkTypeface::kNormal); in onOnceBeforeDraw() 78 SkTypeface* family, SkPaint::Align alignment) { in drawText() 96 SkTypeface* fProp; 97 SkTypeface* fMono;
|
/external/skia/samplecode/ |
D | SampleFontScalerTest.cpp | 26 SkTypeface::Style fStyle; 28 { nullptr, SkTypeface::kNormal }, 29 { nullptr, SkTypeface::kBold }, 30 { "serif", SkTypeface::kNormal }, 31 { "serif", SkTypeface::kBold }, 32 { "serif", SkTypeface::kItalic }, 33 { "serif", SkTypeface::kBoldItalic }, 34 { "monospace", SkTypeface::kNormal } 40 SkTypeface* fFaces[gFaceCount]; 45 fFaces[i] = SkTypeface::CreateFromName(gFaces[i].fName, in FontScalerTestView() [all …]
|
/external/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 45 SkTypeface* createTypeface(int index) override { in createTypeface() 49 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle() 93 SkTypeface* SkFontMgr_Indirect::createTypefaceFromFontId(const SkFontIdentity& id) const { in createTypefaceFromFontId() 100 SkAutoTUnref<SkTypeface> dataTypeface; in createTypefaceFromFontId() 138 SkAutoTUnref<SkTypeface> typeface(fImpl->createFromStream(stream.detach(), id.fTtcIndex)); in createTypefaceFromFontId() 152 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() 158 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 168 SkTypeface* SkFontMgr_Indirect::onMatchFaceStyle(const SkTypeface* familyMember, in onMatchFaceStyle() 175 SkTypeface* SkFontMgr_Indirect::onCreateFromStream(SkStreamAsset* stream, int ttcIndex) const { in onCreateFromStream() 179 SkTypeface* SkFontMgr_Indirect::onCreateFromFile(const char path[], int ttcIndex) const { in onCreateFromFile() [all …]
|
D | SkFontMgr_fontconfig.cpp | 147 SkTypeface* createTypeface(int index) override; 148 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 204 SkTypeface* SkFontStyleSet_FC::createTypeface(int index) { in createTypeface() 208 SkTypeface* SkFontStyleSet_FC::matchStyle(const SkFontStyle& pattern) { in matchStyle() 283 SkTypeface* onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() 285 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, in onMatchFamilyStyleCharacter() 290 SkTypeface* onMatchFaceStyle(const SkTypeface*, in onMatchFaceStyle() argument 293 SkTypeface* onCreateFromData(SkData*, int ttcIndex) const override { return nullptr; } in onCreateFromData() 295 SkTypeface* onCreateFromStream(SkStreamAsset* bareStream, int ttcIndex) const override { in onCreateFromStream() 312 SkTypeface* face = FontConfigTypeface::Create(style, isFixedWidth, stream.detach()); in onCreateFromStream() [all …]
|
D | SkGScalerContext.h | 14 class SkGTypeface : public SkTypeface { 16 SkGTypeface(SkTypeface* proxy, const SkPaint&); 19 SkTypeface* proxy() const { return fProxy; } in proxy() 38 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override; 45 SkTypeface* fProxy;
|
/external/skia/src/ports/ |
D | SkFontHost_fontconfig.cpp | 61 static bool find_by_FontIdentity(SkTypeface* cachedTypeface, const SkFontStyle&, void* ctx) { in find_by_FontIdentity() 118 Result(Request* request, SkTypeface* typeface) in Result() 130 SkAutoTUnref<SkTypeface> fFace; 139 void add(SkTypeface* face, Request* request) { in add() 143 SkTypeface* findAndRef(Request* request) { in findAndRef() 144 SkTypeface* face = nullptr; in findAndRef() 147 SkTypeface** face = static_cast<SkTypeface**>(context); in findAndRef() 156 static void Add(SkTypeface* face, Request* request) { in Add() 162 static SkTypeface* FindAndRef(Request* request) { in FindAndRef() 168 SkTypeface* FontConfigTypeface::LegacyCreateTypeface(const char requestedFamilyName[], in LegacyCreateTypeface() [all …]
|
/external/skia/bench/ |
D | CmapBench.cpp | 17 static SkTypeface::Encoding paint2Encoding(const SkPaint& paint) { in paint2Encoding() 20 return (SkTypeface::Encoding)enc; in paint2Encoding() 45 SkTypeface::Encoding encoding = paint2Encoding(paint); in charsToGlyphs_proc() 49 SkTypeface* face = paint.getTypeface(); in charsToGlyphs_proc() 57 SkTypeface::Encoding encoding = paint2Encoding(paint); in charsToGlyphsNull_proc() 59 SkTypeface* face = paint.getTypeface(); in charsToGlyphsNull_proc() 80 fPaint.setTypeface(SkTypeface::RefDefault())->unref(); in CMAPBench()
|