/external/skia/tools/fonts/ |
H A D | test_font_index.inc | 13 LiberationMonoNormalMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), nullptr 17 LiberationMonoBoldMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), nullptr 21 LiberationMonoItalicMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), nullptr 25 LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), nullptr 29 LiberationSansNormalMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle [all...] |
H A D | SkTestFontMgr.cpp | 26 fTypefaces[0] = create_portable_typeface(familyName, SkFontStyle::Normal()); 27 fTypefaces[1] = create_portable_typeface(familyName, SkFontStyle::Bold()); 28 fTypefaces[2] = create_portable_typeface(familyName, SkFontStyle::Italic()); 29 fTypefaces[3] = create_portable_typeface(familyName, SkFontStyle::BoldItalic()); 34 void getStyle(int index, SkFontStyle* style, SkString* name) override { 37 case 0: if (style) { *style = SkFontStyle::Normal(); } 40 case 1: if (style) { *style = SkFontStyle::Bold(); } 43 case 2: if (style) { *style = SkFontStyle::Italic(); } 46 case 3: if (style) { *style = SkFontStyle::BoldItalic(); } 56 SkTypeface* matchStyle(const SkFontStyle [all...] |
H A D | sk_tool_utils_font.cpp | 11 #include "SkFontStyle.h" 34 sk_sp<SkTypeface> create_font(const char* name, SkFontStyle style) { 76 sk_sp<SkTypeface> typeface(fm->matchFamilyStyle(colorEmojiFontName, SkFontStyle())); 81 colorEmojiFontName, SkFontStyle(), nullptr /* bcp47 */, 0 /* bcp47Count */, 88 return SkTypeface::MakeFromName("Segoe UI Symbol", SkFontStyle()); 91 return SkTypeface::MakeFromName("Apple Color Emoji", SkFontStyle()); 140 sk_sp<SkTypeface> create_portable_typeface(const char* name, SkFontStyle style) { 144 void set_portable_typeface(SkPaint* paint, const char* name, SkFontStyle style) {
|
/external/skqp/tools/ |
H A D | test_font_index.inc | 13 LiberationMonoNormalMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), nullptr 17 LiberationMonoBoldMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), nullptr 21 LiberationMonoItalicMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), nullptr 25 LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), nullptr 29 LiberationSansNormalMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle [all...] |
/external/skia/include/core/ |
H A D | SkFontStyle.h | 13 class SK_API SkFontStyle { class 47 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( function in class:SkFontStyle 53 constexpr SkFontStyle() : SkFontStyle{kNormal_Weight, kNormal_Width, kUpright_Slant} { } function in class:SkFontStyle 55 bool operator==(const SkFontStyle& rhs) const { 63 static constexpr SkFontStyle Normal() { 64 return SkFontStyle(kNormal_Weight, kNormal_Width, kUpright_Slant); 66 static constexpr SkFontStyle Bold() { 67 return SkFontStyle(kBold_Weight, kNormal_Width, kUpright_Slant); 69 static constexpr SkFontStyle Itali [all...] |
/external/skqp/include/core/ |
H A D | SkFontStyle.h | 13 class SK_API SkFontStyle { class 47 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( function in class:SkFontStyle 53 constexpr SkFontStyle() : SkFontStyle{kNormal_Weight, kNormal_Width, kUpright_Slant} { } function in class:SkFontStyle 55 bool operator==(const SkFontStyle& rhs) const { 63 static constexpr SkFontStyle Normal() { 64 return SkFontStyle(kNormal_Weight, kNormal_Width, kUpright_Slant); 66 static constexpr SkFontStyle Bold() { 67 return SkFontStyle(kBold_Weight, kNormal_Width, kUpright_Slant); 69 static constexpr SkFontStyle Itali [all...] |
/external/skia/tests/ |
H A D | FontMgrTest.cpp | 67 sk_sp<SkTypeface> first(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); 72 sk_sp<SkTypeface> face(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); 102 SkFontStyle fs; 124 static const SkFontStyle invalidFontStyle(101, SkFontStyle::kNormal_Width, SkFontStyle::kUpright_Slant); 128 TestTypeface(const SkFontStyle& fontStyle) : SkTypeface(fontStyle, false){} 173 TestFontStyleSet(std::initializer_list<SkFontStyle> styles) : fStyles(styles) {} 175 void getStyle(int index, SkFontStyle* style, SkString*) override { 186 SkTypeface* matchStyle(const SkFontStyle [all...] |
/external/skqp/tests/ |
H A D | FontMgrTest.cpp | 67 sk_sp<SkTypeface> first(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); 72 sk_sp<SkTypeface> face(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); 102 SkFontStyle fs; 124 static const SkFontStyle invalidFontStyle(101, SkFontStyle::kNormal_Width, SkFontStyle::kUpright_Slant); 128 TestTypeface(const SkFontStyle& fontStyle) : SkTypeface(fontStyle, false){} 173 TestFontStyleSet(std::initializer_list<SkFontStyle> styles) : fStyles(styles) {} 175 void getStyle(int index, SkFontStyle* style, SkString*) override { 186 SkTypeface* matchStyle(const SkFontStyle [all...] |
/external/skia/include/ports/ |
H A D | SkFontMgr.h | 12 #include "SkFontStyle.h" 25 virtual void getStyle(int index, SkFontStyle*, SkString* style) = 0; 27 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0; 32 SkTypeface* matchStyleCSS3(const SkFontStyle& pattern); 70 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 87 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 91 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const; 125 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const; 139 const SkFontStyle&) const = 0; 140 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle [all...] |
H A D | SkRemotableFontMgr.h | 12 #include "SkFontStyle.h" 31 // Since they may be selected against, these are really 'extensions' to SkFontStyle. 32 // SkFontStyle should pick these up. 33 SkFontStyle fFontStyle; 72 virtual SkFontIdentity matchIndexStyle(int familyIndex, const SkFontStyle&) const = 0; 80 * getIndex(int) or matchIndexStyle(int, SkFontStyle) due to 110 virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontStyle&) const = 0; 122 virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], const SkFontStyle&,
|
H A D | SkFontMgr_indirect.h | 21 class SkFontStyle; 42 const SkFontStyle& fontStyle) const override; 45 const SkFontStyle&, 51 const SkFontStyle& fontStyle) const override; 56 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override;
|
/external/skqp/include/ports/ |
H A D | SkFontMgr.h | 12 #include "SkFontStyle.h" 25 virtual void getStyle(int index, SkFontStyle*, SkString* style) = 0; 27 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0; 32 SkTypeface* matchStyleCSS3(const SkFontStyle& pattern); 70 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 87 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 91 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const; 125 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const; 139 const SkFontStyle&) const = 0; 140 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle [all...] |
H A D | SkRemotableFontMgr.h | 12 #include "SkFontStyle.h" 31 // Since they may be selected against, these are really 'extensions' to SkFontStyle. 32 // SkFontStyle should pick these up. 33 SkFontStyle fFontStyle; 72 virtual SkFontIdentity matchIndexStyle(int familyIndex, const SkFontStyle&) const = 0; 80 * getIndex(int) or matchIndexStyle(int, SkFontStyle) due to 110 virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontStyle&) const = 0; 122 virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], const SkFontStyle&,
|
H A D | SkFontMgr_indirect.h | 21 class SkFontStyle; 42 const SkFontStyle& fontStyle) const override; 45 const SkFontStyle&, 51 const SkFontStyle& fontStyle) const override; 56 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override;
|
/external/skqp/dm/ |
H A D | DMFontMgr.cpp | 26 fTypefaces[0] = create_portable_typeface(familyName, SkFontStyle::Normal()); 27 fTypefaces[1] = create_portable_typeface(familyName, SkFontStyle::Bold()); 28 fTypefaces[2] = create_portable_typeface(familyName, SkFontStyle::Italic()); 29 fTypefaces[3] = create_portable_typeface(familyName, SkFontStyle::BoldItalic()); 34 void getStyle(int index, SkFontStyle* style, SkString* name) override { 37 case 0: if (style) { *style = SkFontStyle::Normal(); } 40 case 1: if (style) { *style = SkFontStyle::Bold(); } 43 case 2: if (style) { *style = SkFontStyle::Italic(); } 46 case 3: if (style) { *style = SkFontStyle::BoldItalic(); } 56 SkTypeface* matchStyle(const SkFontStyle [all...] |
/external/skia/samplecode/ |
H A D | SampleFontScalerTest.cpp | 14 #include "SkFontStyle.h" 26 SkFontStyle fStyle; 28 { nullptr, SkFontStyle::Normal() }, 29 { nullptr, SkFontStyle::Bold() }, 30 { "serif", SkFontStyle::Normal() }, 31 { "serif", SkFontStyle::Bold() }, 32 { "serif", SkFontStyle::Italic() }, 33 { "serif", SkFontStyle::BoldItalic() }, 34 { "monospace", SkFontStyle::Normal() } 82 paint.setTypeface(SkTypeface::MakeFromName("Times Roman", SkFontStyle())); [all...] |
/external/skqp/samplecode/ |
H A D | SampleFontScalerTest.cpp | 14 #include "SkFontStyle.h" 26 SkFontStyle fStyle; 28 { nullptr, SkFontStyle::Normal() }, 29 { nullptr, SkFontStyle::Bold() }, 30 { "serif", SkFontStyle::Normal() }, 31 { "serif", SkFontStyle::Bold() }, 32 { "serif", SkFontStyle::Italic() }, 33 { "serif", SkFontStyle::BoldItalic() }, 34 { "monospace", SkFontStyle::Normal() } 82 paint.setTypeface(SkTypeface::MakeFromName("Times Roman", SkFontStyle())); [all...] |
/external/skia/src/ports/ |
H A D | SkFontConfigInterface_direct.h | 22 SkFontStyle requested, 25 SkFontStyle* outStyle) override;
|
H A D | SkFontMgr_custom.h | 13 #include "SkFontStyle.h" 27 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch, 62 const SkFontStyle& style, bool isFixedPitch, bool sysFont, 78 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, 104 void getStyle(int index, SkFontStyle* style, SkString* name) override; 106 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 139 const SkFontStyle& fontStyle) const override; 140 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 144 const SkFontStyle& fontStyle) const override; 150 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle styl [all...] |
H A D | SkTypeface_win_dw.h | 26 static SkFontStyle get_style(IDWriteFont* font) { 29 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; 31 case DWRITE_FONT_STYLE_NORMAL: slant = SkFontStyle::kUpright_Slant; break; 32 case DWRITE_FONT_STYLE_OBLIQUE: slant = SkFontStyle::kOblique_Slant; break; 33 case DWRITE_FONT_STYLE_ITALIC: slant = SkFontStyle::kItalic_Slant; break; 36 return SkFontStyle(weight, width, slant); 41 DWriteFontTypeface(const SkFontStyle& style,
|
/external/skqp/src/ports/ |
H A D | SkFontConfigInterface_direct.h | 22 SkFontStyle requested, 25 SkFontStyle* outStyle) override;
|
H A D | SkFontMgr_custom.h | 13 #include "SkFontStyle.h" 27 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch, 62 const SkFontStyle& style, bool isFixedPitch, bool sysFont, 78 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, 104 void getStyle(int index, SkFontStyle* style, SkString* name) override; 106 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 139 const SkFontStyle& fontStyle) const override; 140 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 144 const SkFontStyle& fontStyle) const override; 150 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle styl [all...] |
H A D | SkTypeface_win_dw.h | 26 static SkFontStyle get_style(IDWriteFont* font) { 29 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; 31 case DWRITE_FONT_STYLE_NORMAL: slant = SkFontStyle::kUpright_Slant; break; 32 case DWRITE_FONT_STYLE_OBLIQUE: slant = SkFontStyle::kOblique_Slant; break; 33 case DWRITE_FONT_STYLE_ITALIC: slant = SkFontStyle::kItalic_Slant; break; 36 return SkFontStyle(weight, width, slant); 41 DWriteFontTypeface(const SkFontStyle& style,
|
/external/skia/src/core/ |
H A D | SkFontMgr.cpp | 14 class SkFontStyle; 20 void getStyle(int, SkFontStyle*, SkString*) override { 27 SkTypeface* matchStyle(const SkFontStyle&) override { 52 SkTypeface* onMatchFamilyStyle(const char[], const SkFontStyle&) const override { 56 const SkFontStyle& style, 62 SkTypeface* onMatchFaceStyle(const SkTypeface*, const SkFontStyle&) const override { 82 sk_sp<SkTypeface> onLegacyMakeTypeface(const char [], SkFontStyle) const override { 111 const SkFontStyle& fs) const { 115 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, 122 const SkFontStyle [all...] |
/external/skqp/src/core/ |
H A D | SkFontMgr.cpp | 14 class SkFontStyle; 20 void getStyle(int, SkFontStyle*, SkString*) override { 27 SkTypeface* matchStyle(const SkFontStyle&) override { 52 SkTypeface* onMatchFamilyStyle(const char[], const SkFontStyle&) const override { 56 const SkFontStyle& style, 62 SkTypeface* onMatchFaceStyle(const SkTypeface*, const SkFontStyle&) const override { 82 sk_sp<SkTypeface> onLegacyMakeTypeface(const char [], SkFontStyle) const override { 111 const SkFontStyle& fs) const { 115 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, 122 const SkFontStyle [all...] |