/third_party/flutter/skia/src/core/ |
D | SkTypeface.cpp | 22 SkTypeface::SkTypeface(const SkFontStyle& style, bool isFixedPitch) in SkTypeface() function in SkTypeface 25 SkTypeface::~SkTypeface() { } in ~SkTypeface() 28 extern void WhitelistSerializeTypeface(const SkTypeface*, SkWStream* ); 34 void (*gSerializeTypefaceDelegate)(const SkTypeface*, SkWStream* ) = SK_TYPEFACE_DELEGATE; 35 sk_sp<SkTypeface> (*gDeserializeTypefaceDelegate)(SkStream* ) = nullptr; 41 class SkEmptyTypeface : public SkTypeface { 43 static sk_sp<SkTypeface> Make() { return sk_sp<SkTypeface>(new SkEmptyTypeface); } in Make() 45 SkEmptyTypeface() : SkTypeface(SkFontStyle(), true) { } in SkEmptyTypeface() 48 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override { in onMakeClone() 67 class EmptyLocalizedStrings : public SkTypeface::LocalizedStrings { [all …]
|
D | SkFontMgr.cpp | 15 class SkTypeface; 23 SkTypeface* createTypeface(int index) override { in createTypeface() 27 SkTypeface* matchStyle(const SkFontStyle&) override { in matchStyle() 52 SkTypeface* onMatchFamilyStyle(const char[], const SkFontStyle&) const override { in onMatchFamilyStyle() 55 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 62 SkTypeface* onMatchFaceStyle(const SkTypeface*, const SkFontStyle&) const override { in onMatchFaceStyle() argument 66 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int) const override { in onMakeFromData() 69 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int) const override { in onMakeFromStreamIndex() 72 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamArgs() 76 sk_sp<SkTypeface> onMakeFromFontData(std::unique_ptr<SkFontData>) const override { in onMakeFromFontData() [all …]
|
/third_party/skia/src/core/ |
D | SkTypeface.cpp | 25 SkTypeface::SkTypeface(const SkFontStyle& style, bool isFixedPitch) in SkTypeface() function in SkTypeface 28 SkTypeface::~SkTypeface() { } in ~SkTypeface() 34 class SkEmptyTypeface : public SkTypeface { 36 static sk_sp<SkTypeface> Make() { return sk_sp<SkTypeface>(new SkEmptyTypeface); } in Make() 38 SkEmptyTypeface() : SkTypeface(SkFontStyle(), true) { } in SkEmptyTypeface() 41 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override { in onMakeClone() 62 class EmptyLocalizedStrings : public SkTypeface::LocalizedStrings { 64 bool next(SkTypeface::LocalizedString*) override { return false; } in next() 72 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override { in onCreateFamilyNameIterator() 96 SkFontStyle SkTypeface::FromOldStyle(Style oldStyle) { in FromOldStyle() [all …]
|
D | SkFontMgr.cpp | 15 class SkTypeface; 23 SkTypeface* createTypeface(int index) override { in createTypeface() 27 SkTypeface* matchStyle(const SkFontStyle&) override { in matchStyle() 52 SkTypeface* onMatchFamilyStyle(const char[], const SkFontStyle&) const override { in onMatchFamilyStyle() 55 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 63 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int) const override { in onMakeFromData() 66 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int) const override { in onMakeFromStreamIndex() 69 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamArgs() 73 sk_sp<SkTypeface> onMakeFromFile(const char[], int) const override { in onMakeFromFile() 76 sk_sp<SkTypeface> onLegacyMakeTypeface(const char [], SkFontStyle) const override { in onLegacyMakeTypeface() [all …]
|
/third_party/flutter/skia/include/core/ |
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); 79 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 96 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 100 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const; 107 sk_sp<SkTypeface> makeFromData(sk_sp<SkData>, int ttcIndex = 0) const; 114 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, int ttcIndex = 0) const; 117 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) const; [all …]
|
D | SkTypeface.h | 45 class SK_API SkTypeface : public SkWeakRefCnt { 100 static SkFontID UniqueID(const SkTypeface* face); 105 static bool Equal(const SkTypeface* facea, const SkTypeface* faceb); 108 static sk_sp<SkTypeface> MakeDefault(); 119 static sk_sp<SkTypeface> MakeFromName(const char familyName[], SkFontStyle fontStyle); 124 static sk_sp<SkTypeface> MakeFromFile(const char path[], int index = 0); 130 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset> stream, int index = 0); 135 static sk_sp<SkTypeface> MakeFromData(sk_sp<SkData>, int index = 0); 140 static sk_sp<SkTypeface> MakeFromFontData(std::unique_ptr<SkFontData>); 148 sk_sp<SkTypeface> makeClone(const SkFontArguments&) const; [all …]
|
/third_party/skia/include/core/ |
D | SkFontMgr.h | 24 class SkTypeface; variable 30 virtual SkTypeface* createTypeface(int index) = 0; 31 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0; 36 SkTypeface* matchStyleCSS3(const SkFontStyle& pattern); 84 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 101 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 110 sk_sp<SkTypeface> makeFromData(sk_sp<SkData>, int ttcIndex = 0) const; 117 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, int ttcIndex = 0) const; 120 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) const; 128 sk_sp<SkTypeface> makeFromFile(const char path[], int ttcIndex = 0) const; [all …]
|
D | SkTypeface.h | 45 class SK_API SkTypeface : public SkWeakRefCnt { 100 static SkFontID UniqueID(const SkTypeface* face); 105 static bool Equal(const SkTypeface* facea, const SkTypeface* faceb); 108 static sk_sp<SkTypeface> MakeDefault(); 119 static sk_sp<SkTypeface> MakeFromName(const char familyName[], SkFontStyle fontStyle); 124 static sk_sp<SkTypeface> MakeFromFile(const char path[], int index = 0); 130 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset> stream, int index = 0); 135 static sk_sp<SkTypeface> MakeFromData(sk_sp<SkData>, int index = 0); 143 sk_sp<SkTypeface> makeClone(const SkFontArguments&) const; 172 static sk_sp<SkTypeface> MakeDeserialize(SkStream*); [all …]
|
/third_party/flutter/skia/modules/skparagraph/include/ |
D | TypefaceFontProvider.h | 24 SkTypeface* createTypeface(int index) override; 25 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 29 void appendTypeface(sk_sp<SkTypeface> typeface); 32 SkTArray<sk_sp<SkTypeface>> fStyles; 39 size_t registerTypeface(sk_sp<SkTypeface> typeface); 40 size_t registerTypeface(sk_sp<SkTypeface> typeface, const SkString& alias); 49 SkTypeface* onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() 53 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, in onMatchFamilyStyleCharacter() 58 SkTypeface* onMatchFaceStyle(const SkTypeface* tf, const SkFontStyle& style) const override { in onMatchFaceStyle() 62 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override { return nullptr; } in onMakeFromData() [all …]
|
/third_party/flutter/skia/src/utils/ |
D | SkWhitelistTypefaces.cpp | 20 extern void WhitelistSerializeTypeface(const SkTypeface*, SkWStream* ); 21 sk_sp<SkTypeface> WhitelistDeserializeTypeface(SkStream* ); 35 sk_sp<SkTypeface> defaultFace(SkTypeface::MakeFromName(nullptr, style)); in font_name_is_local() 36 sk_sp<SkTypeface> foundFace(SkTypeface::MakeFromName(fontName, style)); in font_name_is_local() 40 static int whitelist_name_index(const SkTypeface* tf) { in whitelist_name_index() 43 sk_sp<SkTypeface::LocalizedStrings> nameIter = in whitelist_name_index() 45 SkTypeface::LocalizedString familyNameLocalized; in whitelist_name_index() 56 sk_sp<SkTypeface::LocalizedStrings> debugIter = in whitelist_name_index() 65 static uint32_t compute_checksum(const SkTypeface* tf) { in compute_checksum() 107 static bool is_local(const SkTypeface* tf) { in is_local() [all …]
|
/third_party/skia/modules/skparagraph/include/ |
D | TypefaceFontProvider.h | 23 SkTypeface* createTypeface(int index) override; 24 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 28 void appendTypeface(sk_sp<SkTypeface> typeface); 31 SkTArray<sk_sp<SkTypeface>> fStyles; 38 size_t registerTypeface(sk_sp<SkTypeface> typeface); 39 size_t registerTypeface(sk_sp<SkTypeface> typeface, const SkString& alias); 48 SkTypeface* onMatchFamilyStyle(const char[], const SkFontStyle&) const override { in onMatchFamilyStyle() 51 SkTypeface* onMatchFamilyStyleCharacter(const char[], const SkFontStyle&, in onMatchFamilyStyleCharacter() 57 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int) const override { return nullptr; } in onMakeFromData() 58 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int) const override { in onMakeFromStreamIndex() [all …]
|
/third_party/flutter/skia/src/ports/skia_ohos/ |
D | SkFontMgr_ohos.h | 33 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], 35 … virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, 39 virtual SkTypeface* onMatchFaceStyle(const SkTypeface* typeface, 42 virtual sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override; 43 virtual sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, 45 virtual sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, 47 virtual sk_sp<SkTypeface> onMakeFromFontData(std::unique_ptr<SkFontData> data) const override; 48 virtual sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 50 …virtual sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const o… 58 sk_sp<SkTypeface> makeTypeface(std::unique_ptr<SkStreamAsset> stream, [all …]
|
/third_party/skia/tests/ |
D | TypefaceTest.cpp | 58 sk_sp<SkTypeface> newTypeface(SkTypeface::MakeFromData(sk_ref_sp(data))); in TypefaceStyle_test() 104 sk_sp<SkTypeface> typeface(MakeResourceAsTypeface("fonts/Em.ttf")); in DEF_TEST() 120 sk_sp<SkTypeface> typeface(MakeResourceAsTypeface("fonts/7630.otf")); in DEF_TEST() 130 sk_sp<SkTypeface> typeface2 = fm->makeFromStream(std::move(stream), fontIndex); in DEF_TEST() 160 auto test = [&](SkTypeface* typeface, const Variation& expected, int alsoAcceptedAxisTagCount) { in DEF_TEST() 231 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(variable), 0); in DEF_TEST() 252 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(dupTags), params); in DEF_TEST() 272 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in DEF_TEST() 277 sk_sp<SkTypeface> clone = typeface->makeClone(SkFontArguments()); in DEF_TEST() 294 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in DEF_TEST() [all …]
|
/third_party/flutter/skia/tools/fonts/ |
D | TestFontMgr.cpp | 31 TypefaceEntry(sk_sp<SkTypeface> typeface, SkFontStyle style, const char* styleName) in TypefaceEntry() 33 sk_sp<SkTypeface> fTypeface; 49 SkTypeface* createTypeface(int index) override { in createTypeface() 53 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle() 143 SkTypeface* onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() 149 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 160 SkTypeface* onMatchFaceStyle(const SkTypeface* tf, const SkFontStyle& style) const override { in onMatchFaceStyle() 166 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override { return nullptr; } in onMakeFromData() 167 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamIndex() 171 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamArgs() [all …]
|
D | ToolUtilsFont.cpp | 21 sk_sp<SkTypeface> planet_typeface() { in planet_typeface() 22 static const sk_sp<SkTypeface> planetTypeface = []() { in planet_typeface() 31 sk_sp<SkTypeface> typeface = MakeResourceAsTypeface(filename); in planet_typeface() 35 return SkTypeface::MakeFromName("Planet", SkFontStyle()); in planet_typeface() 40 sk_sp<SkTypeface> emoji_typeface() { in emoji_typeface() 41 static const sk_sp<SkTypeface> emojiTypeface = []() { in emoji_typeface() 50 sk_sp<SkTypeface> typeface = MakeResourceAsTypeface(filename); in emoji_typeface() 54 return SkTypeface::MakeFromName("Emoji", SkFontStyle()); in emoji_typeface() 64 static sk_sp<SkTypeface> create_font(const char* name, SkFontStyle style) { in create_font() 69 sk_sp<SkTypeface> create_portable_typeface(const char* name, SkFontStyle style) { in create_portable_typeface()
|
/third_party/flutter/skia/src/ports/ |
D | SkFontMgr_custom.h | 22 class SkTypeface; variable 53 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override; 69 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override; 85 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override; 108 SkTypeface* createTypeface(int index) override; 109 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 141 SkTypeface* onMatchFamilyStyle(const char familyName[], 143 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 146 SkTypeface* onMatchFaceStyle(const SkTypeface* familyMember, 148 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override; [all …]
|
D | SkFontMgr_FontConfigInterface.cpp | 62 SkTypeface* createTypeface(int index) override { SkASSERT(false); return nullptr; } in createTypeface() 63 SkTypeface* matchStyle(const SkFontStyle& pattern) override { return nullptr; } in matchStyle() 106 Result(Request* request, sk_sp<SkTypeface> typeface) in Result() 117 sk_sp<SkTypeface> fFace; 126 void add(sk_sp<SkTypeface> face, Request* request) { in add() 130 sk_sp<SkTypeface> findAndRef(Request* request) { in findAndRef() 131 sk_sp<SkTypeface> face; in findAndRef() 134 sk_sp<SkTypeface>* face = static_cast<sk_sp<SkTypeface>*>(context); in findAndRef() 145 static bool find_by_FontIdentity(SkTypeface* cachedTypeface, void* ctx) { in find_by_FontIdentity() 190 SkTypeface* onMatchFamilyStyle(const char requestedFamilyName[], in onMatchFamilyStyle() [all …]
|
D | SkFontMgr_custom.cpp | 53 sk_sp<SkTypeface> SkTypeface_Empty::onMakeClone(const SkFontArguments& args) const { in onMakeClone() 73 sk_sp<SkTypeface> SkTypeface_Stream::onMakeClone(const SkFontArguments& args) const { in onMakeClone() 100 sk_sp<SkTypeface> SkTypeface_File::onMakeClone(const SkFontArguments& args) const { in onMakeClone() 138 SkTypeface* SkFontStyleSet_Custom::createTypeface(int index) { in createTypeface() 143 SkTypeface* SkFontStyleSet_Custom::matchStyle(const SkFontStyle& pattern) { in matchStyle() 163 sk_sp<SkTypeface> tf(set->matchStyle(SkFontStyle(SkFontStyle::kNormal_Weight, in SkFontMgr_Custom() 201 SkTypeface* SkFontMgr_Custom::onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() 208 SkTypeface* SkFontMgr_Custom::onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 216 SkTypeface* SkFontMgr_Custom::onMatchFaceStyle(const SkTypeface* familyMember, in onMatchFaceStyle() 229 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromData(sk_sp<SkData> data, int ttcIndex) const { in onMakeFromData() [all …]
|
D | SkFontMgr_fuchsia.cpp | 203 sk_sp<SkTypeface> CreateTypefaceFromSkStream(std::unique_ptr<SkStreamAsset> stream, in CreateTypefaceFromSkStream() 225 sk_sp<SkTypeface> CreateTypefaceFromSkData(sk_sp<SkData> data, TypefaceId id) { in CreateTypefaceFromSkData() 241 SkTypeface* onMatchFamilyStyle(const char familyName[], const SkFontStyle&) const override; 242 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 245 SkTypeface* onMatchFaceStyle(const SkTypeface*, const SkFontStyle&) const override; 246 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override; 247 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, 249 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, 251 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 252 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override; [all …]
|
/third_party/flutter/skia/tests/ |
D | TypefaceTest.cpp | 59 sk_sp<SkTypeface> newTypeface(SkTypeface::MakeFromData(sk_ref_sp(data))); in TypefaceStyle_test() 105 sk_sp<SkTypeface> typeface(MakeResourceAsTypeface("fonts/7630.otf")); in DEF_TEST() 115 sk_sp<SkTypeface> typeface2 = fm->makeFromStream(std::move(stream), fontIndex); in DEF_TEST() 161 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in DEF_TEST() 197 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); in DEF_TEST() 225 sk_sp<SkTypeface> t1(SkTypeface::MakeFromName(nullptr, SkFontStyle())); in DEF_TEST() 226 sk_sp<SkTypeface> t2(SkTypeface::MakeDefault()); in DEF_TEST() 228 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), t2.get())); in DEF_TEST() 229 REPORTER_ASSERT(reporter, SkTypeface::Equal(nullptr, t1.get())); in DEF_TEST() 230 REPORTER_ASSERT(reporter, SkTypeface::Equal(nullptr, t2.get())); in DEF_TEST() [all …]
|
/third_party/skia/src/ports/ |
D | SkFontMgr_FontConfigInterface.cpp | 61 SkTypeface* createTypeface(int index) override { SkASSERT(false); return nullptr; } in createTypeface() 62 SkTypeface* matchStyle(const SkFontStyle& pattern) override { return nullptr; } in matchStyle() 105 Result(Request* request, sk_sp<SkTypeface> typeface) in Result() 116 sk_sp<SkTypeface> fFace; 125 void add(sk_sp<SkTypeface> face, Request* request) { in add() 129 sk_sp<SkTypeface> findAndRef(Request* request) { in findAndRef() 130 sk_sp<SkTypeface> face; in findAndRef() 133 sk_sp<SkTypeface>* face = static_cast<sk_sp<SkTypeface>*>(context); in findAndRef() 144 static bool find_by_FontIdentity(SkTypeface* cachedTypeface, void* ctx) { in find_by_FontIdentity() 189 SkTypeface* onMatchFamilyStyle(const char requestedFamilyName[], in onMatchFamilyStyle() [all …]
|
D | SkFontMgr_custom.h | 22 class SkTypeface; variable 53 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override; 70 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override; 86 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override; 110 SkTypeface* createTypeface(int index) override; 111 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 143 SkTypeface* onMatchFamilyStyle(const char familyName[], 145 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 148 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override; 149 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri… [all …]
|
/third_party/skia/tools/fonts/ |
D | TestFontMgr.cpp | 31 TypefaceEntry(sk_sp<SkTypeface> typeface, SkFontStyle style, const char* styleName) in TypefaceEntry() 33 sk_sp<SkTypeface> fTypeface; 49 SkTypeface* createTypeface(int index) override { in createTypeface() 53 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle() 143 SkTypeface* onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() 149 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 160 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override { return nullptr; } in onMakeFromData() 161 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamIndex() 165 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamArgs() 169 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override { in onMakeFromFile() [all …]
|
D | ToolUtilsFont.cpp | 22 sk_sp<SkTypeface> planet_typeface() { in planet_typeface() 23 static const sk_sp<SkTypeface> planetTypeface = []() { in planet_typeface() 32 sk_sp<SkTypeface> typeface = MakeResourceAsTypeface(filename); in planet_typeface() 36 return SkTypeface::MakeFromName("Planet", SkFontStyle()); in planet_typeface() 41 sk_sp<SkTypeface> emoji_typeface() { in emoji_typeface() 42 static const sk_sp<SkTypeface> emojiTypeface = []() { in emoji_typeface() 51 sk_sp<SkTypeface> typeface = MakeResourceAsTypeface(filename); in emoji_typeface() 55 return SkTypeface::MakeFromName("Emoji", SkFontStyle()); in emoji_typeface() 66 sk_sp<SkTypeface> sample_user_typeface() { in sample_user_typeface() 104 static sk_sp<SkTypeface> create_font(const char* name, SkFontStyle style) { in create_font() [all …]
|
/third_party/skia/src/ports/skia_ohos/ |
D | SkFontMgr_ohos.h | 33 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], 35 … virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, 39 virtual SkTypeface* onMatchFaceStyle(const SkTypeface* typeface, 42 virtual sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override; 43 virtual sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, 45 virtual sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, 47 virtual sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 49 …virtual sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const o… 57 sk_sp<SkTypeface> makeTypeface(std::unique_ptr<SkStreamAsset> stream, 59 SkTypeface* findTypeface(const FallbackSetPos& fallbackItem, const SkFontStyle& style,
|