/third_party/flutter/skia/modules/skparagraph/src/ |
D | TypefaceFontProvider.cpp | 12 void TypefaceFontProvider::onGetFamilyName(int index, SkString* familyName) const { in onGetFamilyName() 14 familyName->set(fFamilyNames[index]); in onGetFamilyName() 17 SkFontStyleSet* TypefaceFontProvider::onMatchFamily(const char familyName[]) const { in onMatchFamily() 18 auto found = fRegisteredFamilies.find(SkString(familyName)); in onMatchFamily() 30 SkString familyName; in registerTypeface() local 31 typeface->getFamilyName(&familyName); in registerTypeface() 33 return registerTypeface(std::move(typeface), std::move(familyName)); in registerTypeface() 36 …_t TypefaceFontProvider::registerTypeface(sk_sp<SkTypeface> typeface, const SkString& familyName) { in registerTypeface() argument 37 if (familyName.size() == 0) { in registerTypeface() 41 auto found = fRegisteredFamilies.find(familyName); in registerTypeface() [all …]
|
/third_party/skia/modules/skparagraph/src/ |
D | TypefaceFontProvider.cpp | 14 void TypefaceFontProvider::onGetFamilyName(int index, SkString* familyName) const { in onGetFamilyName() 16 familyName->set(fFamilyNames[index]); in onGetFamilyName() 19 SkFontStyleSet* TypefaceFontProvider::onMatchFamily(const char familyName[]) const { in onMatchFamily() 20 auto found = fRegisteredFamilies.find(SkString(familyName)); in onMatchFamily() 32 SkString familyName; in registerTypeface() local 33 typeface->getFamilyName(&familyName); in registerTypeface() 35 return registerTypeface(std::move(typeface), std::move(familyName)); in registerTypeface() 38 …_t TypefaceFontProvider::registerTypeface(sk_sp<SkTypeface> typeface, const SkString& familyName) { in registerTypeface() argument 39 if (familyName.size() == 0) { in registerTypeface() 43 auto found = fRegisteredFamilies.find(familyName); in registerTypeface() [all …]
|
/third_party/flutter/skia/tools/fonts/ |
D | TestFontMgr.cpp | 29 FontStyleSet(const char* familyName) : fFamilyName(familyName) {} in FontStyleSet() argument 111 void onGetFamilyName(int index, SkString* familyName) const override { in onGetFamilyName() 112 *familyName = fFamilies[index]->getFamilyName(); in onGetFamilyName() 120 SkFontStyleSet* onMatchFamily(const char familyName[]) const override { in onMatchFamily() 121 if (familyName) { in onMatchFamily() 122 if (strstr(familyName, "ono")) { in onMatchFamily() 125 if (strstr(familyName, "ans")) { in onMatchFamily() 128 if (strstr(familyName, "erif")) { in onMatchFamily() 132 if (strstr(familyName, "oji")) { in onMatchFamily() 135 if (strstr(familyName, "Planet")) { in onMatchFamily() [all …]
|
/third_party/flutter/skia/src/ports/ |
D | SkFontMgr_custom.cpp | 29 bool sysFont, const SkString familyName, int index) in SkTypeface_Custom() argument 31 , fIsSysFont(sysFont), fFamilyName(familyName), fIndex(index) in SkTypeface_Custom() 36 void SkTypeface_Custom::onGetFamilyName(SkString* familyName) const { in onGetFamilyName() 37 *familyName = fFamilyName; in onGetFamilyName() 59 const SkString familyName) in SkTypeface_Stream() argument 60 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) in SkTypeface_Stream() 79 SkString familyName; in onMakeClone() local 80 this->getFamilyName(&familyName); in onMakeClone() 86 familyName); in onMakeClone() 90 const SkString familyName, const char path[], int index) in SkTypeface_File() argument [all …]
|
D | SkFontMgr_ohos.cpp | 25 void SkFontMgr_OHOS::onGetFamilyName(int index, SkString* familyName) const in onGetFamilyName() 28 familyName->reset(); in onGetFamilyName() 31 familyName->set(fNameToFamilyMap[index].name); in onGetFamilyName() 42 SkFontStyleSet* SkFontMgr_OHOS::onMatchFamily(const char familyName[]) const in onMatchFamily() 44 if (!familyName) { in onMatchFamily() 47 std::string familyNameStr(familyName); in onMatchFamily() 85 SkTypeface* SkFontMgr_OHOS::onMatchFamilyStyle(const char familyName[], const SkFontStyle& style) c… in onMatchFamilyStyle() argument 87 sk_sp<SkFontStyleSet> sset(this->matchFamily(familyName)); in onMatchFamilyStyle() 103 sk_sp<SkTypeface> SkFontMgr_OHOS::find_family_style_character(const SkString& familyName, in find_family_style_character() argument 131 SkString SkFontMgr_OHOS::find_family_style_character_ohos(const SkString& familyName, in find_family_style_character_ohos() argument [all …]
|
D | SkFontConfigTypeface.h | 28 SkString familyName, in Create() argument 31 return new SkTypeface_FCI(std::move(fci), fi, std::move(familyName), style); in Create() 35 SkString familyName, SkFontStyle style, bool isFixedPitch) in Create() argument 37 return new SkTypeface_FCI(std::move(data), std::move(familyName), style, isFixedPitch); in Create() 58 SkString familyName, in SkTypeface_FCI() argument 63 , fFamilyName(std::move(familyName)) in SkTypeface_FCI() 67 SkString familyName, SkFontStyle style, bool isFixedPitch) in SkTypeface_FCI() argument 69 , fFamilyName(std::move(familyName)) in SkTypeface_FCI() 76 void onGetFamilyName(SkString* familyName) const override { *familyName = fFamilyName; } in onGetFamilyName() argument
|
D | SkFontMgr_ohos.h | 58 const std::string& familyName, in SkTypeface_OHOS() argument 67 , fFamilyName(familyName.c_str()) in SkTypeface_OHOS() 174 std::string familyName(skFamilyName.c_str()); 175 std::transform(familyName.begin(), familyName.end(), familyName.begin(), 185 item.typeface, familyName, item.lang, item.variant, 287 SkString onMatchFamilyStyleCharacterOHOS(const char familyName[], 293 SkString onMatchFamilyStyleCharacterHwFont(const char familyName[], 305 void onGetFamilyName(int index, SkString* familyName) const override; 307 SkFontStyleSet* onMatchFamily(const char familyName[]) const override; 308 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], [all …]
|
D | SkFontMgr_preview.h | 36 const SkString& familyName) in SkTypeface_Preview() argument 38 , fFamilyName(familyName) in SkTypeface_Preview() 44 void onGetFamilyName(SkString* familyName) const override in onGetFamilyName() argument 46 *familyName = fFamilyName; in onGetFamilyName() 62 const SkString& familyName, in SkTypeface_PreviewSystem() argument 65 : INHERITED(style, isFixedPitch, familyName) in SkTypeface_PreviewSystem() 137 const SkString& familyName) in SkTypeface_PreviewStream() argument 138 : INHERITED(style, isFixedPitch, familyName) in SkTypeface_PreviewStream() 203 SkString familyName; in SkFontStyleSet_Preview() local 209 &familyName, &style, &isFixedWidth, &axisDefinitions)) { in SkFontStyleSet_Preview() [all …]
|
D | SkFontMgr_android.cpp | 39 const SkString& familyName) in SkTypeface_Android() argument 41 , fFamilyName(familyName) in SkTypeface_Android() 45 void onGetFamilyName(SkString* familyName) const override { in onGetFamilyName() 46 *familyName = fFamilyName; in onGetFamilyName() 63 const SkString& familyName, in SkTypeface_AndroidSystem() argument 66 : INHERITED(style, isFixedPitch, familyName) in SkTypeface_AndroidSystem() 133 const SkString& familyName) in SkTypeface_AndroidStream() argument 134 : INHERITED(style, isFixedPitch, familyName) in SkTypeface_AndroidStream() 198 SkString familyName; in SkFontStyleSet_Android() local 203 &familyName, &style, &isFixedWidth, &axisDefinitions)) in SkFontStyleSet_Android() [all …]
|
D | SkFontMgr_preview.cpp | 28 void SkFontMgr_Preview::onGetFamilyName(int index, SkString* familyName) const in onGetFamilyName() 31 familyName->reset(); in onGetFamilyName() 34 familyName->set(fNameToFamilyMap[index].name); in onGetFamilyName() 45 SkFontStyleSet* SkFontMgr_Preview::onMatchFamily(const char familyName[]) const in onMatchFamily() 47 if (!familyName) { in onMatchFamily() 50 SkAutoAsciiToLC tolc(familyName); in onMatchFamily() 65 SkTypeface* SkFontMgr_Preview::onMatchFamilyStyle(const char familyName[], const SkFontStyle& style… in onMatchFamilyStyle() argument 67 sk_sp<SkFontStyleSet> sset(this->matchFamily(familyName)); in onMatchFamilyStyle() 84 const SkString& familyName, in find_family_style_character() argument 91 if (familyName != family->fFallbackFor) { in find_family_style_character() [all …]
|
D | SkFontMgr_custom.h | 28 bool sysFont, const SkString familyName, int index); 32 void onGetFamilyName(SkString* familyName) const override; 64 const SkString familyName); 81 const SkString familyName, const char path[], int index); 102 explicit SkFontStyleSet_Custom(const SkString familyName); 138 void onGetFamilyName(int index, SkString* familyName) const override; 140 SkFontStyleSet_Custom* onMatchFamily(const char familyName[]) const override; 141 SkTypeface* onMatchFamilyStyle(const char familyName[], 143 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 153 … sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const override;
|
/third_party/skia/src/ports/ |
D | SkFontMgr_custom.cpp | 28 bool sysFont, const SkString familyName, int index) in SkTypeface_Custom() argument 30 , fIsSysFont(sysFont), fFamilyName(familyName), fIndex(index) in SkTypeface_Custom() 35 void SkTypeface_Custom::onGetFamilyName(SkString* familyName) const { in onGetFamilyName() 36 *familyName = fFamilyName; in onGetFamilyName() 60 const SkString familyName) in SkTypeface_Stream() argument 61 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) in SkTypeface_Stream() 80 SkString familyName; in onMakeClone() local 81 this->getFamilyName(&familyName); in onMakeClone() 87 familyName); in onMakeClone() 91 const SkString familyName, const char path[], int index) in SkTypeface_File() argument [all …]
|
D | SkFontConfigTypeface.h | 28 SkString familyName, in Create() argument 31 return new SkTypeface_FCI(std::move(fci), fi, std::move(familyName), style); in Create() 35 SkString familyName, SkFontStyle style, bool isFixedPitch) in Create() argument 37 return new SkTypeface_FCI(std::move(data), std::move(familyName), style, isFixedPitch); in Create() 58 SkString familyName, in SkTypeface_FCI() argument 63 , fFamilyName(std::move(familyName)) in SkTypeface_FCI() 67 SkString familyName, SkFontStyle style, bool isFixedPitch) in SkTypeface_FCI() argument 69 , fFamilyName(std::move(familyName)) in SkTypeface_FCI() 76 void onGetFamilyName(SkString* familyName) const override { *familyName = fFamilyName; } in onGetFamilyName() argument
|
D | SkFontMgr_android.cpp | 38 const SkString& familyName) in SkTypeface_Android() argument 40 , fFamilyName(familyName) in SkTypeface_Android() 44 void onGetFamilyName(SkString* familyName) const override { in onGetFamilyName() 45 *familyName = fFamilyName; in onGetFamilyName() 62 const SkString& familyName, in SkTypeface_AndroidSystem() argument 65 : INHERITED(style, isFixedPitch, familyName) in SkTypeface_AndroidSystem() 132 const SkString& familyName) in SkTypeface_AndroidStream() argument 133 : INHERITED(style, isFixedPitch, familyName) in SkTypeface_AndroidStream() 196 SkString familyName; in SkFontStyleSet_Android() local 201 &familyName, &style, &isFixedWidth, &axisDefinitions)) in SkFontStyleSet_Android() [all …]
|
D | SkFontMgr_custom.h | 28 bool sysFont, const SkString familyName, int index); 32 void onGetFamilyName(SkString* familyName) const override; 65 const SkString familyName); 82 const SkString familyName, const char path[], int index); 104 explicit SkFontStyleSet_Custom(const SkString familyName); 140 void onGetFamilyName(int index, SkString* familyName) const override; 142 SkFontStyleSet_Custom* onMatchFamily(const char familyName[]) const override; 143 SkTypeface* onMatchFamilyStyle(const char familyName[], 145 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 152 … sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const override;
|
/third_party/skia/tools/fonts/ |
D | TestFontMgr.cpp | 29 FontStyleSet(const char* familyName) : fFamilyName(familyName) {} in FontStyleSet() argument 111 void onGetFamilyName(int index, SkString* familyName) const override { in onGetFamilyName() 112 *familyName = fFamilies[index]->getFamilyName(); in onGetFamilyName() 120 SkFontStyleSet* onMatchFamily(const char familyName[]) const override { in onMatchFamily() 121 if (familyName) { in onMatchFamily() 122 if (strstr(familyName, "ono")) { in onMatchFamily() 125 if (strstr(familyName, "ans")) { in onMatchFamily() 128 if (strstr(familyName, "erif")) { in onMatchFamily() 132 if (strstr(familyName, "oji")) { in onMatchFamily() 135 if (strstr(familyName, "Planet")) { in onMatchFamily() [all …]
|
/third_party/flutter/skia/src/ports/skia_ohos/ |
D | SkFontMgr_ohos.cpp | 33 void SkFontMgr_OHOS::onGetFamilyName(int index, SkString* familyName) const in onGetFamilyName() 35 if (fontConfig == nullptr || familyName == nullptr) { in onGetFamilyName() 38 fontConfig->getFamilyName(index, familyName); in onGetFamilyName() 65 SkFontStyleSet* SkFontMgr_OHOS::onMatchFamily(const char familyName[]) const in onMatchFamily() 71 if (familyName == nullptr) { in onMatchFamily() 76 int index = fontConfig->getStyleIndex(familyName, isFallback); in onMatchFamily() 91 SkTypeface* SkFontMgr_OHOS::onMatchFamilyStyle(const char familyName[], const SkFontStyle& style) c… in onMatchFamilyStyle() argument 98 if (familyName) { in onMatchFamilyStyle() 99 styleIndex = fontConfig->getStyleIndex(familyName, isFallback); in onMatchFamilyStyle() 116 SkTypeface* SkFontMgr_OHOS::onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&… in onMatchFamilyStyleCharacter() argument [all …]
|
D | SkTypeface_ohos.cpp | 17 SkTypeface_OHOS::SkTypeface_OHOS(const SkString& familyName, FontInfo& info) in SkTypeface_OHOS() argument 19 specifiedName(familyName) in SkTypeface_OHOS() 83 SkString familyName; in onGetFontDescriptor() local 84 onGetFamilyName(&familyName); in onGetFontDescriptor() 85 descriptor->setFamilyName(familyName.c_str()); in onGetFontDescriptor() 93 void SkTypeface_OHOS::onGetFamilyName(SkString* familyName) const in onGetFamilyName() 95 if (familyName == nullptr) { in onGetFamilyName() 99 *familyName = specifiedName; in onGetFamilyName() 102 *familyName = fontInfo->familyName; in onGetFamilyName() 126 axisValues, fontInfo->familyName); in onMakeClone()
|
D | FontConfig_ohos.cpp | 70 int FontConfig_OHOS::getDefaultFamily(SkString* familyName) const in getDefaultFamily() 72 return getFamilyName(0, familyName); in getDefaultFamily() 81 int FontConfig_OHOS::getFamilyName(int index, SkString* familyName) const in getFamilyName() 84 if (familyName) { in getFamilyName() 85 familyName->reset(); in getFamilyName() 89 if (familyName) { in getFamilyName() 90 *familyName = genericFamilySet[index]->familyName; in getFamilyName() 187 int FontConfig_OHOS::getStyleIndex(const char* familyName, bool& isFallback) const in getStyleIndex() argument 189 if (familyName == nullptr) { in getStyleIndex() 193 SkString fname(familyName); in getStyleIndex() [all …]
|
D | FontInfo_ohos.h | 22 FontInfo() : familyName(""), fname(""), index(0), in FontInfo() 31 : familyName(font.familyName), fname(font.fname), index(font.index), in FontInfo() 45 : familyName(std::move(font.familyName)), fname(std::move(font.fname)), index(font.index), in FontInfo() 60 : familyName(""), fname(""), index(index), in FontInfo() 82 familyName = font.familyName; 103 familyName = std::move(font.familyName); 132 SkString familyName; // the real family name of the font member
|
/third_party/skia/include/core/ |
D | SkFontMgr.h | 41 void getFamilyName(int index, SkString* familyName) const; 55 SkFontStyleSet* matchFamily(const char familyName[]) const; 69 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 86 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 115 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const; 122 virtual void onGetFamilyName(int index, SkString* familyName) const = 0; 126 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) const = 0; 128 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], 130 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 141 virtual sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const = 0;
|
/third_party/flutter/skia/include/core/ |
D | SkFontMgr.h | 41 void getFamilyName(int index, SkString* familyName) const; 65 SkFontStyleSet* matchFamily(const char familyName[]) const; 79 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 96 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 134 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const; 150 virtual void onGetFamilyName(int index, SkString* familyName) const = 0; 154 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) const = 0; 156 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], 158 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 172 virtual sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const = 0;
|
/third_party/flutter/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 66 void SkFontMgr_Indirect::onGetFamilyName(int index, SkString* familyName) const { in onGetFamilyName() 74 SkFontStyleSet* SkFontMgr_Indirect::onMatchFamily(const char familyName[]) const { in onMatchFamily() 75 return new SkStyleSet_Indirect(this, -1, fProxy->matchName(familyName)); in onMatchFamily() 137 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() argument 139 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); in onMatchFamilyStyle() 143 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() argument 148 SkFontIdentity id = fProxy->matchNameStyleCharacter(familyName, style, bcp47, in onMatchFamilyStyleCharacter() 155 SkString familyName; in onMatchFaceStyle() local 156 familyMember->getFamilyName(&familyName); in onMatchFaceStyle() 157 return this->matchFamilyStyle(familyName.c_str(), fontStyle); in onMatchFaceStyle() [all …]
|
/third_party/flutter/skia/src/utils/ |
D | SkWhitelistTypefaces.cpp | 90 const char* familyName = subName.c_str(); in serialize_sub() local 91 desc.setFamilyName(familyName); in serialize_sub() 99 SkDebugf("%s %s\n", __FUNCTION__, familyName); in serialize_sub() 132 const char* familyName = desc.getFamilyName(); in serialize_name_only() local 133 if (familyName) { in serialize_name_only() 134 if (!strcmp(familyName, "Times New Roman")) { in serialize_name_only() 137 SkDebugf("%s %s\n", __FUNCTION__, familyName); in serialize_name_only() 141 if (!strcmp(familyName, whitelist[i].fFontName)) { in serialize_name_only() 144 SkDebugf("%s %s\n", __FUNCTION__, familyName); in serialize_name_only() 200 const char* familyName = desc.getFamilyName(); in WhitelistDeserializeTypeface() local [all …]
|
/third_party/skia/src/core/ |
D | SkFontMgr.cpp | 41 void onGetFamilyName(int index, SkString* familyName) const override { in onGetFamilyName() 55 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() argument 92 void SkFontMgr::getFamilyName(int index, SkString* familyName) const { in getFamilyName() 93 this->onGetFamilyName(index, familyName); in getFamilyName() 100 SkFontStyleSet* SkFontMgr::matchFamily(const char familyName[]) const { in matchFamily() 101 return emptyOnNull(this->onMatchFamily(familyName)); in matchFamily() 104 SkTypeface* SkFontMgr::matchFamilyStyle(const char familyName[], in matchFamilyStyle() argument 106 return this->onMatchFamilyStyle(familyName, fs); in matchFamilyStyle() 109 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, in matchFamilyStyleCharacter() argument 112 return this->onMatchFamilyStyleCharacter(familyName, style, bcp47, bcp47Count, character); in matchFamilyStyleCharacter() [all …]
|