Home
last modified time | relevance | path

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

12345

/external/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()
36 SkString familyName; in registerTypeface() local
37 typeface->getFamilyName(&familyName); in registerTypeface()
39 return registerTypeface(std::move(typeface), std::move(familyName)); in registerTypeface()
42 …_t TypefaceFontProvider::registerTypeface(sk_sp<SkTypeface> typeface, const SkString& familyName) { in registerTypeface() argument
43 if (familyName.size() == 0) { in registerTypeface()
47 auto found = fRegisteredFamilies.find(familyName); in registerTypeface()
[all …]
DFontCollection.cpp86 for (const SkString& familyName : familyNames) { in findTypefaces() local
87 sk_sp<SkTypeface> match = matchTypeface(familyName, fontStyle); in findTypefaces()
95 for (const SkString& familyName : fDefaultFamilyNames) { in findTypefaces() local
96 match = matchTypeface(familyName, fontStyle); in findTypefaces()
118 sk_sp<SkTypeface> FontCollection::matchTypeface(const SkString& familyName, SkFontStyle fontStyle) { in matchTypeface() argument
120 sk_sp<SkFontStyleSet> set(manager->matchFamily(familyName.c_str())); in matchTypeface()
155 for (const SkString& familyName : fDefaultFamilyNames) { in defaultFallback() local
156 SkTypeface* match = fDefaultFontManager->matchFamilyStyle(familyName.c_str(), in defaultFallback()
/external/skqp/tools/fonts/
DSkTestFontMgr.cpp28 FontStyleSet(const char* familyName) : fFamilyName(familyName) { } in FontStyleSet() argument
102 void onGetFamilyName(int index, SkString* familyName) const override { in onGetFamilyName()
103 *familyName = fFamilies[index]->getFamilyName(); in onGetFamilyName()
111 SkFontStyleSet* onMatchFamily(const char familyName[]) const override { in onMatchFamily()
112 if (familyName) { in onMatchFamily()
113 if (strstr(familyName, "ono")) { return this->createStyleSet(0); } in onMatchFamily()
114 if (strstr(familyName, "ans")) { return this->createStyleSet(1); } in onMatchFamily()
115 if (strstr(familyName, "erif")) { return this->createStyleSet(2); } in onMatchFamily()
117 if (strstr(familyName, "oji")) { return this->createStyleSet(6); } in onMatchFamily()
124 SkTypeface* onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() argument
[all …]
/external/skqp/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 …]
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_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 …]
DSkFontMgr_fuchsia.cpp116 bool isFixedPitch, const SkString familyName, TypefaceId id) in SkTypeface_Fuchsia() argument
118 /*sys_font=*/true, familyName) in SkTypeface_Fuchsia()
162 void onGetFamilyName(int index, SkString* familyName) const override;
163 SkFontStyleSet* onMatchFamily(const char familyName[]) const override;
165 SkTypeface* onMatchFamilyStyle(const char familyName[], const SkFontStyle&) const override;
166 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
176 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override;
181 sk_sp<SkTypeface> FetchTypeface(const char familyName[], const SkFontStyle& style,
201 SkFontStyleSet_Fuchsia(sk_sp<SkFontMgr_Fuchsia> font_manager, std::string familyName, in SkFontStyleSet_Fuchsia() argument
203 : fFontManager(font_manager), fFamilyName(familyName), fStyles(styles) {} in SkFontStyleSet_Fuchsia()
[all …]
DSkFontMgr_custom.h28 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;
/external/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 …]
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_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 …]
DSkFontMgr_custom.h28 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&,
153 … sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const override;
DSkFontMgr_fuchsia.cpp192 bool isFixedPitch, const SkString familyName, TypefaceId id) in SkTypeface_Fuchsia() argument
194 /*sys_font=*/true, familyName) in SkTypeface_Fuchsia()
238 void onGetFamilyName(int index, SkString* familyName) const override;
239 SkFontStyleSet* onMatchFamily(const char familyName[]) const override;
241 SkTypeface* onMatchFamilyStyle(const char familyName[], const SkFontStyle&) const override;
242 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
251 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override;
256 sk_sp<SkTypeface> FetchTypeface(const char familyName[], const SkFontStyle& style,
276 SkFontStyleSet_Fuchsia(sk_sp<SkFontMgr_Fuchsia> font_manager, std::string familyName, in SkFontStyleSet_Fuchsia() argument
278 : fFontManager(font_manager), fFamilyName(familyName), fStyles(styles) {} in SkFontStyleSet_Fuchsia()
[all …]
DSkFontMgr_mac_ct.cpp57 static SkUniqueCFRef<CTFontDescriptorRef> create_descriptor(const char familyName[], in create_descriptor() argument
130 if (familyName) { in create_descriptor()
131 SkUniqueCFRef<CFStringRef> cfFontName = make_CFString(familyName); in create_descriptor()
173 static sk_sp<SkTypeface> create_from_name(const char familyName[], const SkFontStyle& style) { in create_from_name() argument
174 SkUniqueCFRef<CTFontDescriptorRef> desc = create_descriptor(familyName, style); in create_from_name()
420 SkUniqueCFRef<CFTypeRef> familyName( in SkCopyAvailableFontFamilyNames() local
422 if (familyName) { in SkCopyAvailableFontFamilyNames()
423 CFSetAddValue(familyNameSet, familyName.get()); in SkCopyAvailableFontFamilyNames()
503 void onGetFamilyName(int index, SkString* familyName) const override { in onGetFamilyName()
505 SkStringFromCFString(this->getFamilyNameAt(index), familyName); in onGetFamilyName()
[all …]
/external/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 …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTypeface.java51 protected static Typeface create(String familyName, int style) { in create() argument
52 return createUnderlyingTypeface(familyName, style); in create()
87 String familyName = path.toPath().getFileName().toString(); in createFromFile() local
88 return createUnderlyingTypeface(familyName, Typeface.NORMAL); in createFromFile()
155 private static Typeface createUnderlyingTypeface(String familyName, int style) { in createUnderlyingTypeface() argument
157 FONTS.put(thisFontId, new FontDesc(familyName, style)); in createUnderlyingTypeface()
182 public final String familyName; field in ShadowTypeface.FontDesc
185 public FontDesc(String familyName, int style) { in FontDesc() argument
186 this.familyName = familyName; in FontDesc()
198 … if (familyName != null ? !familyName.equals(fontDesc.familyName) : fontDesc.familyName != null) in equals()
[all …]
/external/skqp/include/core/
DSkFontMgr.h41 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&,
124 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const;
131 virtual void onGetFamilyName(int index, SkString* familyName) const = 0;
135 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) const = 0;
137 virtual SkTypeface* onMatchFamilyStyle(const char familyName[],
139 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
153 virtual sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const = 0;
/external/skia/include/core/
DSkFontMgr.h41 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&,
122 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const;
129 virtual void onGetFamilyName(int index, SkString* familyName) const = 0;
133 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) const = 0;
135 virtual SkTypeface* onMatchFamilyStyle(const char familyName[],
137 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
149 virtual sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const = 0;
/external/skqp/src/fonts/
DSkFontMgr_indirect.cpp66 void SkFontMgr_Indirect::onGetFamilyName(int index, SkString* familyName) const { in onGetFamilyName()
75 SkFontStyleSet* SkFontMgr_Indirect::onMatchFamily(const char familyName[]) const { in onMatchFamily()
76 return new SkStyleSet_Indirect(this, -1, fProxy->matchName(familyName)); in onMatchFamily()
138 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyle(const char familyName[], in onMatchFamilyStyle() argument
140 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); in onMatchFamilyStyle()
144 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() argument
149 SkFontIdentity id = fProxy->matchNameStyleCharacter(familyName, style, bcp47, in onMatchFamilyStyleCharacter()
156 SkString familyName; in onMatchFaceStyle() local
157 familyMember->getFamilyName(&familyName); in onMatchFaceStyle()
158 return this->matchFamilyStyle(familyName.c_str(), fontStyle); in onMatchFaceStyle()
[all …]
/external/skqp/src/utils/
DSkWhitelistTypefaces.cpp90 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 …]
/external/skia/src/core/
DSkFontMgr.cpp41 void onGetFamilyName(int index, SkString* familyName) const override { in onGetFamilyName()
55 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() argument
95 void SkFontMgr::getFamilyName(int index, SkString* familyName) const { in getFamilyName()
96 this->onGetFamilyName(index, familyName); in getFamilyName()
103 SkFontStyleSet* SkFontMgr::matchFamily(const char familyName[]) const { in matchFamily()
104 return emptyOnNull(this->onMatchFamily(familyName)); in matchFamily()
107 SkTypeface* SkFontMgr::matchFamilyStyle(const char familyName[], in matchFamilyStyle() argument
109 return this->onMatchFamilyStyle(familyName, fs); in matchFamilyStyle()
112 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, in matchFamilyStyleCharacter() argument
115 return this->onMatchFamilyStyleCharacter(familyName, style, bcp47, bcp47Count, character); in matchFamilyStyleCharacter()
[all …]
/external/skqp/src/core/
DSkFontMgr.cpp41 void onGetFamilyName(int index, SkString* familyName) const override { in onGetFamilyName()
55 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() argument
98 void SkFontMgr::getFamilyName(int index, SkString* familyName) const { in getFamilyName()
99 this->onGetFamilyName(index, familyName); in getFamilyName()
106 SkFontStyleSet* SkFontMgr::matchFamily(const char familyName[]) const { in matchFamily()
107 return emptyOnNull(this->onMatchFamily(familyName)); in matchFamily()
110 SkTypeface* SkFontMgr::matchFamilyStyle(const char familyName[], in matchFamilyStyle() argument
112 return this->onMatchFamilyStyle(familyName, fs); in matchFamilyStyle()
115 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, in matchFamilyStyleCharacter() argument
118 return this->onMatchFamilyStyleCharacter(familyName, style, bcp47, bcp47Count, character); in matchFamilyStyleCharacter()
[all …]
/external/skia/include/utils/
DSkOrderedFontMgr.h29 void onGetFamilyName(int index, SkString* familyName) const override;
32 SkFontStyleSet* onMatchFamily(const char familyName[]) const override;
34 SkTypeface* onMatchFamilyStyle(const char familyName[], const SkFontStyle&) const override;
35 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
48 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override;
/external/skia/src/utils/
DSkOrderedFontMgr.cpp26 void SkOrderedFontMgr::onGetFamilyName(int index, SkString* familyName) const { in onGetFamilyName()
30 return fm->getFamilyName(index, familyName); in onGetFamilyName()
47 SkFontStyleSet* SkOrderedFontMgr::onMatchFamily(const char familyName[]) const { in onMatchFamily()
49 if (auto fs = fm->matchFamily(familyName)) { in onMatchFamily()
66 SkTypeface* SkOrderedFontMgr::onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() argument
71 if (auto tf = fm->matchFamilyStyleCharacter(familyName, style, bcp47, bcp47Count, uni)) { in onMatchFamilyStyleCharacter()
/external/skia/src/fonts/
DSkFontMgr_indirect.cpp66 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()
171 sk_sp<SkTypeface> SkFontMgr_Indirect::onLegacyMakeTypeface(const char familyName[], in onLegacyMakeTypeface() argument
173 sk_sp<SkTypeface> face(this->matchFamilyStyle(familyName, style)); in onLegacyMakeTypeface()

12345