Home
last modified time | relevance | path

Searched refs:familyName (Results 1 – 25 of 163) sorted by relevance

1234567

/third_party/flutter/skia/modules/skparagraph/src/
DTypefaceFontProvider.cpp12 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/
DTypefaceFontProvider.cpp14 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/
DTestFontMgr.cpp29 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/
DSkFontMgr_custom.cpp29 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 …]
DSkFontMgr_ohos.cpp25 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 …]
DSkFontMgr_ohos.h58 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 …]
DSkFontMgr_preview.h36 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 …]
DSkFontMgr_android.cpp39 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 …]
DSkFontConfigTypeface.h28 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
/third_party/skia/src/ports/
DSkFontMgr_custom.cpp28 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 …]
DSkFontMgr_preview.h35 const SkString& familyName) in SkTypeface_Preview() argument
37 , fFamilyName(familyName) in SkTypeface_Preview()
43 void onGetFamilyName(SkString* familyName) const override in onGetFamilyName() argument
45 *familyName = fFamilyName; in onGetFamilyName()
61 const SkString& familyName, in SkTypeface_PreviewSystem() argument
64 : INHERITED(style, isFixedPitch, familyName) in SkTypeface_PreviewSystem()
136 const SkString& familyName) in SkTypeface_PreviewStream() argument
137 : INHERITED(style, isFixedPitch, familyName) in SkTypeface_PreviewStream()
202 SkString familyName; in SkFontStyleSet_Preview() local
208 &familyName, &style, &isFixedWidth, &axisDefinitions)) { in SkFontStyleSet_Preview()
[all …]
DSkFontMgr_android.cpp38 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 …]
DSkFontConfigTypeface.h28 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
DSkFontMgr_preview.cpp28 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 …]
/third_party/skia/tools/fonts/
DTestFontMgr.cpp29 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/
DSkFontMgr_ohos.cpp33 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 …]
DFontConfig_ohos.cpp73 int FontConfig_OHOS::getDefaultFamily(SkString* familyName) const in getDefaultFamily()
75 return getFamilyName(0, familyName); in getDefaultFamily()
84 int FontConfig_OHOS::getFamilyName(int index, SkString* familyName) const in getFamilyName()
87 if (familyName) { in getFamilyName()
88 familyName->reset(); in getFamilyName()
92 if (familyName) { in getFamilyName()
93 *familyName = genericFamilySet[index]->familyName; in getFamilyName()
190 int FontConfig_OHOS::getStyleIndex(const char* familyName, bool& isFallback) const in getStyleIndex() argument
192 if (familyName == nullptr) { in getStyleIndex()
196 SkString fname(familyName); in getStyleIndex()
[all …]
DSkTypeface_ohos.cpp17 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()
DFontInfo_ohos.h22 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/src/ports/skia_ohos/
DSkFontMgr_ohos.cpp33 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 …]
DFontConfig_ohos.cpp73 int FontConfig_OHOS::getDefaultFamily(SkString* familyName) const in getDefaultFamily()
75 return getFamilyName(0, familyName); in getDefaultFamily()
84 int FontConfig_OHOS::getFamilyName(int index, SkString* familyName) const in getFamilyName()
87 if (familyName) { in getFamilyName()
88 familyName->reset(); in getFamilyName()
92 if (familyName) { in getFamilyName()
93 *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 …]
DSkTypeface_ohos.cpp17 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()
DFontInfo_ohos.h22 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/
DSkFontMgr.h45 void getFamilyName(int index, SkString* familyName) const;
70 SkFontStyleSet* matchFamily(const char familyName[]) const;
84 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const;
101 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
130 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const;
147 virtual void onGetFamilyName(int index, SkString* familyName) const = 0;
151 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) const = 0;
153 virtual SkTypeface* onMatchFamilyStyle(const char familyName[],
155 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
166 virtual sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const = 0;
/third_party/flutter/skia/include/core/
DSkFontMgr.h41 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;

1234567