Home
last modified time | relevance | path

Searched refs:SkFontStyle (Results 1 – 25 of 224) sorted by relevance

123456789

/external/skia/tools/fonts/
Dtest_font_index.inc13 … LiberationMonoNormalMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
17 … LiberationMonoBoldMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
21 … LiberationMonoItalicMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
25 …LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kItalic_Sla…
29 … LiberationSansNormalMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
33 … LiberationSansBoldMetrics, "Toy Liberation Sans", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
37 … LiberationSansItalicMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
41 …LiberationSansBoldItalicMetrics, "Toy Liberation Sans", SkFontStyle(700,5,SkFontStyle::kItalic_Sla…
45 …LiberationSerifNormalMetrics, "Toy Liberation Serif", SkFontStyle(400,5,SkFontStyle::kUpright_Slan…
49 … LiberationSerifBoldMetrics, "Toy Liberation Serif", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
[all …]
DTestFontMgr.cpp31 TypefaceEntry(sk_sp<SkTypeface> typeface, SkFontStyle style, const char* styleName) in TypefaceEntry()
34 SkFontStyle fStyle;
40 void getStyle(int index, SkFontStyle* style, SkString* name) override { in getStyle()
53 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle()
101 TestSVGTypeface::Default(), SkFontStyle::Normal(), "Normal"); in FontMgr()
105 TestSVGTypeface::Planets(), SkFontStyle::Normal(), "Normal"); in FontMgr()
144 const SkFontStyle& style) const override { in onMatchFamilyStyle()
150 const SkFontStyle& style, in onMatchFamilyStyleCharacter()
177 SkFontStyle style) const override { in onLegacyMakeTypeface()
DToolUtilsFont.cpp36 return SkTypeface::MakeFromName("Planet", SkFontStyle()); in planet_typeface()
55 return SkTypeface::MakeFromName("Emoji", SkFontStyle()); in emoji_typeface()
91 builder.setFontStyle(SkFontStyle(367, 3, SkFontStyle::kOblique_Slant)); in sample_user_typeface()
104 static sk_sp<SkTypeface> create_font(const char* name, SkFontStyle style) { in create_font()
109 sk_sp<SkTypeface> create_portable_typeface(const char* name, SkFontStyle style) { in create_portable_typeface()
/external/skqp/tools/fonts/
Dtest_font_index.inc13 … LiberationMonoNormalMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
17 … LiberationMonoBoldMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
21 … LiberationMonoItalicMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
25 …LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kItalic_Sla…
29 … LiberationSansNormalMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
33 … LiberationSansBoldMetrics, "Toy Liberation Sans", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
37 … LiberationSansItalicMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
41 …LiberationSansBoldItalicMetrics, "Toy Liberation Sans", SkFontStyle(700,5,SkFontStyle::kItalic_Sla…
45 …LiberationSerifNormalMetrics, "Toy Liberation Serif", SkFontStyle(400,5,SkFontStyle::kUpright_Slan…
49 … LiberationSerifBoldMetrics, "Toy Liberation Serif", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
[all …]
DSkTestFontMgr.cpp30 TypefaceEntry(sk_sp<SkTypeface> typeface, SkFontStyle style, const char* styleName) in TypefaceEntry()
36 SkFontStyle fStyle;
42 void getStyle(int index, SkFontStyle* style, SkString* name) override { in getStyle()
51 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle()
96 …fFamilies.back()->fTypefaces.emplace_back(SkTestSVGTypeface::Default(), SkFontStyle::Normal(), "No… in FontMgr()
125 const SkFontStyle& style) const override { in onMatchFamilyStyle()
131 const SkFontStyle& style, in onMatchFamilyStyleCharacter()
141 const SkFontStyle& style) const override { in onMatchFaceStyle()
166 SkFontStyle style) const override { in onLegacyMakeTypeface()
/external/skia/modules/skottie/tests/
DText.cpp22 const SkFontStyle* styleRequestedWhenMatchingFamily(const char* family) const { in styleRequestedWhenMatchingFamily()
34 SkTypeface* onMatchFamilyStyle(const char family[], const SkFontStyle& style) const override { in onMatchFamilyStyle()
40 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, in onMatchFamilyStyleCharacter() argument
61 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override { in onLegacyMakeTypeface()
65 mutable std::unordered_map<std::string, SkFontStyle> fStyleRequestedWhenMatchingFamily;
115 SkFontStyle::Weight weight; in DEF_TEST()
116 SkFontStyle::Slant slant; in DEF_TEST()
118 { "f1" , SkFontStyle::kNormal_Weight , SkFontStyle::kUpright_Slant }, in DEF_TEST()
119 { "f2" , SkFontStyle::kMedium_Weight , SkFontStyle::kUpright_Slant }, in DEF_TEST()
120 { "f3" , SkFontStyle::kBold_Weight , SkFontStyle::kUpright_Slant }, in DEF_TEST()
[all …]
/external/skia/tests/
DFontMgrTest.cpp66 sk_sp<SkTypeface> first(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); in DEF_TEST()
73 sk_sp<SkTypeface> face(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); in DEF_TEST()
102 SkFontStyle fs; in DEF_TEST()
124 …static const SkFontStyle invalidFontStyle(101, SkFontStyle::kNormal_Width, SkFontStyle::kUpright_S… in DEF_TEST()
128 TestTypeface(const SkFontStyle& fontStyle) : SkTypeface(fontStyle, false){} in DEF_TEST()
182 TestFontStyleSet(std::initializer_list<SkFontStyle> styles) : fStyles(styles) {} in DEF_TEST()
184 void getStyle(int index, SkFontStyle* style, SkString*) override { in DEF_TEST()
195 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in DEF_TEST()
199 std::vector<SkFontStyle> fStyles; in DEF_TEST()
202SkFontStyle condensed_normal_100(SkFontStyle::kThin_Weight, SkFontStyle::kCondensed_Width, SkFont… in DEF_TEST()
[all …]
/external/skqp/tests/
DFontMgrTest.cpp62 sk_sp<SkTypeface> first(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); in test_alias_names()
67 sk_sp<SkTypeface> face(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); in test_alias_names()
97 SkFontStyle fs; in test_fontiter()
119 …static const SkFontStyle invalidFontStyle(101, SkFontStyle::kNormal_Width, SkFontStyle::kUpright_S… in test_matchStyleCSS3()
123 TestTypeface(const SkFontStyle& fontStyle) : SkTypeface(fontStyle, false){} in test_matchStyleCSS3()
171 TestFontStyleSet(std::initializer_list<SkFontStyle> styles) : fStyles(styles) {} in test_matchStyleCSS3()
173 void getStyle(int index, SkFontStyle* style, SkString*) override { in test_matchStyleCSS3()
184 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in test_matchStyleCSS3()
188 std::vector<SkFontStyle> fStyles; in test_matchStyleCSS3()
191SkFontStyle condensed_normal_100(SkFontStyle::kThin_Weight, SkFontStyle::kCondensed_Width, SkFont… in test_matchStyleCSS3()
[all …]
/external/skia/modules/canvaskit/
Dparagraph_bindings_gen.cpp31 enum_<SkFontStyle::Slant>("FontSlant") in EMSCRIPTEN_BINDINGS()
32 .value("Upright", SkFontStyle::Slant::kUpright_Slant) in EMSCRIPTEN_BINDINGS()
33 .value("Italic", SkFontStyle::Slant::kItalic_Slant) in EMSCRIPTEN_BINDINGS()
34 .value("Oblique", SkFontStyle::Slant::kOblique_Slant); in EMSCRIPTEN_BINDINGS()
36 enum_<SkFontStyle::Weight>("FontWeight") in EMSCRIPTEN_BINDINGS()
37 .value("Invisible", SkFontStyle::Weight::kInvisible_Weight) in EMSCRIPTEN_BINDINGS()
38 .value("Thin", SkFontStyle::Weight::kThin_Weight) in EMSCRIPTEN_BINDINGS()
39 .value("ExtraLight", SkFontStyle::Weight::kExtraLight_Weight) in EMSCRIPTEN_BINDINGS()
40 .value("Light", SkFontStyle::Weight::kLight_Weight) in EMSCRIPTEN_BINDINGS()
41 .value("Normal", SkFontStyle::Weight::kNormal_Weight) in EMSCRIPTEN_BINDINGS()
[all …]
/external/skia/modules/skottie/src/layers/
DTextLayer.cpp51 SkFontStyle FontStyle(const AnimationBuilder* abuilder, const char* style) { in FontStyle()
52 static constexpr std::tuple<const char*, SkFontStyle::Weight> gWeightMap[] = { in FontStyle()
53 { "regular" , SkFontStyle::kNormal_Weight }, in FontStyle()
54 { "medium" , SkFontStyle::kMedium_Weight }, in FontStyle()
55 { "bold" , SkFontStyle::kBold_Weight }, in FontStyle()
56 { "light" , SkFontStyle::kLight_Weight }, in FontStyle()
57 { "black" , SkFontStyle::kBlack_Weight }, in FontStyle()
58 { "thin" , SkFontStyle::kThin_Weight }, in FontStyle()
59 { "extra" , SkFontStyle::kExtraBold_Weight }, in FontStyle()
60 { "extrabold" , SkFontStyle::kExtraBold_Weight }, in FontStyle()
[all …]
/external/skia/include/core/
DSkFontStyle.h14 class SK_API SkFontStyle {
48 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( in SkFontStyle() function
54 constexpr SkFontStyle() : SkFontStyle{kNormal_Weight, kNormal_Width, kUpright_Slant} { } in SkFontStyle() function
56 bool operator==(const SkFontStyle& rhs) const {
64 static constexpr SkFontStyle Normal() { in Normal()
65 return SkFontStyle(kNormal_Weight, kNormal_Width, kUpright_Slant); in Normal()
67 static constexpr SkFontStyle Bold() { in Bold()
68 return SkFontStyle(kBold_Weight, kNormal_Width, kUpright_Slant); in Bold()
70 static constexpr SkFontStyle Italic() { in Italic()
71 return SkFontStyle(kNormal_Weight, kNormal_Width, kItalic_Slant ); in Italic()
[all …]
DSkFontMgr.h25 virtual void getStyle(int index, SkFontStyle*, SkString* style) = 0;
27 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0;
32 SkTypeface* matchStyleCSS3(const SkFontStyle& pattern);
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;
136 const SkFontStyle&) const = 0;
137 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
149 virtual sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const = 0;
153 const SkFontStyle&) const { in onMatchFaceStyle() argument
/external/skqp/include/core/
DSkFontStyle.h13 class SK_API SkFontStyle {
47 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( in SkFontStyle() function
53 constexpr SkFontStyle() : SkFontStyle{kNormal_Weight, kNormal_Width, kUpright_Slant} { } in SkFontStyle() function
55 bool operator==(const SkFontStyle& rhs) const {
63 static constexpr SkFontStyle Normal() { in Normal()
64 return SkFontStyle(kNormal_Weight, kNormal_Width, kUpright_Slant); in Normal()
66 static constexpr SkFontStyle Bold() { in Bold()
67 return SkFontStyle(kBold_Weight, kNormal_Width, kUpright_Slant); in Bold()
69 static constexpr SkFontStyle Italic() { in Italic()
70 return SkFontStyle(kNormal_Weight, kNormal_Width, kItalic_Slant ); in Italic()
[all …]
DSkFontMgr.h25 virtual void getStyle(int index, SkFontStyle*, SkString* style) = 0;
27 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0;
32 SkTypeface* matchStyleCSS3(const SkFontStyle& pattern);
69 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const;
86 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
90 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const;
124 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const;
138 const SkFontStyle&) const = 0;
139 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
143 const SkFontStyle&) const = 0;
[all …]
/external/skia/src/ports/
DSkFontMgr_fuchsia.cpp55 fuchsia::fonts::Slant SkToFuchsiaSlant(SkFontStyle::Slant slant) { in SkToFuchsiaSlant()
57 case SkFontStyle::kOblique_Slant: in SkToFuchsiaSlant()
59 case SkFontStyle::kItalic_Slant: in SkToFuchsiaSlant()
61 case SkFontStyle::kUpright_Slant: in SkToFuchsiaSlant()
67 SkFontStyle::Slant FuchsiaToSkSlant(fuchsia::fonts::Slant slant) { in FuchsiaToSkSlant()
70 return SkFontStyle::kOblique_Slant; in FuchsiaToSkSlant()
72 return SkFontStyle::kItalic_Slant; in FuchsiaToSkSlant()
75 return SkFontStyle::kUpright_Slant; in FuchsiaToSkSlant()
79 fuchsia::fonts::Width SkToFuchsiaWidth(SkFontStyle::Width width) { in SkToFuchsiaWidth()
81 case SkFontStyle::Width::kUltraCondensed_Width: in SkToFuchsiaWidth()
[all …]
DSkFontMgr_custom.cpp27 SkTypeface_Custom::SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch, in SkTypeface_Custom()
48 SkTypeface_Empty::SkTypeface_Empty() : INHERITED(SkFontStyle(), false, true, SkString(), 0) {} in SkTypeface_Empty()
59 const SkFontStyle& style, bool isFixedPitch, bool sysFont, in SkTypeface_Stream()
90 SkTypeface_File::SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, in SkTypeface_File()
138 void SkFontStyleSet_Custom::getStyle(int index, SkFontStyle* style, SkString* name) { in getStyle()
153 SkTypeface* SkFontStyleSet_Custom::matchStyle(const SkFontStyle& pattern) { in matchStyle()
173 sk_sp<SkTypeface> tf(set->matchStyle(SkFontStyle(SkFontStyle::kNormal_Weight, in SkFontMgr_Custom()
174 SkFontStyle::kNormal_Width, in SkFontMgr_Custom()
175 SkFontStyle::kUpright_Slant))); in SkFontMgr_Custom()
212 const SkFontStyle& fontStyle) const in onMatchFamilyStyle()
[all …]
/external/skqp/modules/skottie/src/
DSkottieTextLayer.cpp29 SkFontStyle FontStyle(const AnimationBuilder* abuilder, const char* style) { in FontStyle()
32 const SkFontStyle::Weight fWeight; in FontStyle()
34 { "ExtraLight", SkFontStyle::kExtraLight_Weight }, in FontStyle()
35 { "Light" , SkFontStyle::kLight_Weight }, in FontStyle()
36 { "Regular" , SkFontStyle::kNormal_Weight }, in FontStyle()
37 { "Medium" , SkFontStyle::kMedium_Weight }, in FontStyle()
38 { "SemiBold" , SkFontStyle::kSemiBold_Weight }, in FontStyle()
39 { "Bold" , SkFontStyle::kBold_Weight }, in FontStyle()
40 { "ExtraBold" , SkFontStyle::kExtraBold_Weight }, in FontStyle()
43 SkFontStyle::Weight weight = SkFontStyle::kNormal_Weight; in FontStyle()
[all …]
/external/skqp/src/core/
DSkFontMgr.cpp14 class SkFontStyle;
20 void getStyle(int, SkFontStyle*, SkString*) override { in getStyle() argument
27 SkTypeface* matchStyle(const SkFontStyle&) override { in matchStyle() argument
52 SkTypeface* onMatchFamilyStyle(const char[], const SkFontStyle&) const override { in onMatchFamilyStyle()
56 const SkFontStyle& style, in onMatchFamilyStyleCharacter()
62 SkTypeface* onMatchFaceStyle(const SkTypeface*, const SkFontStyle&) const override { in onMatchFaceStyle()
82 sk_sp<SkTypeface> onLegacyMakeTypeface(const char [], SkFontStyle) const override { in onLegacyMakeTypeface()
111 const SkFontStyle& fs) const { in matchFamilyStyle()
115 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, in matchFamilyStyleCharacter()
122 const SkFontStyle& fs) const { in matchFaceStyle()
[all …]
DSkTypeface.cpp22 SkTypeface::SkTypeface(const SkFontStyle& style, bool isFixedPitch) in SkTypeface()
45 SkEmptyTypeface() : SkTypeface(SkFontStyle(), true) { } in SkEmptyTypeface()
97 SkFontStyle SkTypeface::FromOldStyle(Style oldStyle) { in FromOldStyle()
98 return SkFontStyle((oldStyle & SkTypeface::kBold) ? SkFontStyle::kBold_Weight in FromOldStyle()
99 : SkFontStyle::kNormal_Weight, in FromOldStyle()
100 SkFontStyle::kNormal_Width, in FromOldStyle()
101 (oldStyle & SkTypeface::kItalic) ? SkFontStyle::kItalic_Slant in FromOldStyle()
102 : SkFontStyle::kUpright_Slant); in FromOldStyle()
136 SkFontStyle fontStyle) { in MakeFromName()
137 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName()
[all …]
/external/skqp/src/ports/
DSkFontMgr_fuchsia.cpp55 fuchsia::fonts::Slant SkToFuchsiaSlant(SkFontStyle::Slant slant) { in SkToFuchsiaSlant()
57 case SkFontStyle::kOblique_Slant: in SkToFuchsiaSlant()
59 case SkFontStyle::kItalic_Slant: in SkToFuchsiaSlant()
61 case SkFontStyle::kUpright_Slant: in SkToFuchsiaSlant()
67 SkFontStyle::Slant FuchsiaToSkSlant(fuchsia::fonts::Slant slant) { in FuchsiaToSkSlant()
70 return SkFontStyle::kOblique_Slant; in FuchsiaToSkSlant()
72 return SkFontStyle::kItalic_Slant; in FuchsiaToSkSlant()
75 return SkFontStyle::kUpright_Slant; in FuchsiaToSkSlant()
115 SkTypeface_Fuchsia(std::unique_ptr<SkFontData> fontData, const SkFontStyle& style, in SkTypeface_Fuchsia()
132 SkFontStyle style; in CreateTypefaceFromSkStream()
[all …]
DSkFontMgr_custom.cpp28 SkTypeface_Custom::SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch, in SkTypeface_Custom()
49 SkTypeface_Empty::SkTypeface_Empty() : INHERITED(SkFontStyle(), false, true, SkString(), 0) {} in SkTypeface_Empty()
58 const SkFontStyle& style, bool isFixedPitch, bool sysFont, in SkTypeface_Stream()
89 SkTypeface_File::SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, in SkTypeface_File()
128 void SkFontStyleSet_Custom::getStyle(int index, SkFontStyle* style, SkString* name) { in getStyle()
143 SkTypeface* SkFontStyleSet_Custom::matchStyle(const SkFontStyle& pattern) { in matchStyle()
163 sk_sp<SkTypeface> tf(set->matchStyle(SkFontStyle(SkFontStyle::kNormal_Weight, in SkFontMgr_Custom()
164 SkFontStyle::kNormal_Width, in SkFontMgr_Custom()
165 SkFontStyle::kUpright_Slant))); in SkFontMgr_Custom()
202 const SkFontStyle& fontStyle) const in onMatchFamilyStyle()
[all …]
DSkFontMgr_custom.h27 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch,
63 const SkFontStyle& style, bool isFixedPitch, bool sysFont,
80 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont,
107 void getStyle(int index, SkFontStyle* style, SkString* name) override;
109 SkTypeface* matchStyle(const SkFontStyle& pattern) override;
142 const SkFontStyle& fontStyle) const override;
143 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
147 const SkFontStyle& fontStyle) const override;
153 … sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const override;
DSkTypeface_win_dw.h27 static SkFontStyle get_style(IDWriteFont* font) { in get_style()
30 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in get_style()
32 case DWRITE_FONT_STYLE_NORMAL: slant = SkFontStyle::kUpright_Slant; break; in get_style()
33 case DWRITE_FONT_STYLE_OBLIQUE: slant = SkFontStyle::kOblique_Slant; break; in get_style()
34 case DWRITE_FONT_STYLE_ITALIC: slant = SkFontStyle::kItalic_Slant; break; in get_style()
37 return SkFontStyle(weight, width, slant); in get_style()
42 DWriteFontTypeface(const SkFontStyle& style,
/external/skia/src/core/
DSkFontMgr.cpp14 class SkFontStyle;
20 void getStyle(int, SkFontStyle*, SkString*) override { in getStyle() argument
27 SkTypeface* matchStyle(const SkFontStyle&) override { in matchStyle() argument
52 SkTypeface* onMatchFamilyStyle(const char[], const SkFontStyle&) const override { in onMatchFamilyStyle()
56 const SkFontStyle& style, in onMatchFamilyStyleCharacter()
79 sk_sp<SkTypeface> onLegacyMakeTypeface(const char [], SkFontStyle) const override { in onLegacyMakeTypeface()
108 const SkFontStyle& fs) const { in matchFamilyStyle()
112 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, in matchFamilyStyleCharacter()
155 sk_sp<SkTypeface> SkFontMgr::legacyMakeTypeface(const char familyName[], SkFontStyle style) const { in legacyMakeTypeface()
203 SkTypeface* SkFontStyleSet::matchStyleCSS3(const SkFontStyle& pattern) { in matchStyleCSS3()
[all …]
/external/skia/docs/examples/
DSkFontMgr_example.cpp5 const char* tostr(SkFontStyle::Slant s) { in tostr()
7 case SkFontStyle::kUpright_Slant: return "SkFontStyle::kUpright_Slant"; in tostr()
8 case SkFontStyle::kItalic_Slant: return "SkFontStyle::kItalic_Slant"; in tostr()
9 case SkFontStyle::kOblique_Slant: return "SkFontStyle::kOblique_Slant"; in tostr()
24 SkFontStyle fontStyle; in draw()

123456789