/external/skia/tests/ |
D | FontMgrTest.cpp | 67 sk_sp<SkTypeface> first(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); in test_alias_names() 72 sk_sp<SkTypeface> face(SkTypeface::MakeFromName(inNames[i], SkFontStyle())); in test_alias_names() 102 SkFontStyle fs; in test_fontiter() 124 …static const SkFontStyle invalidFontStyle(101, SkFontStyle::kNormal_Width, SkFontStyle::kUpright_S… in test_matchStyleCSS3() 128 TestTypeface(const SkFontStyle& fontStyle) : SkTypeface(fontStyle, false){} in test_matchStyleCSS3() 173 TestFontStyleSet(std::initializer_list<SkFontStyle> styles) : fStyles(styles) {} in test_matchStyleCSS3() 175 void getStyle(int index, SkFontStyle* style, SkString*) override { in test_matchStyleCSS3() 186 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in test_matchStyleCSS3() 190 std::vector<SkFontStyle> fStyles; in test_matchStyleCSS3() 193 …SkFontStyle condensed_normal_100(SkFontStyle::kThin_Weight, SkFontStyle::kCondensed_Width, SkFont… in test_matchStyleCSS3() [all …]
|
/external/skia/src/core/ |
D | SkFontStyle.cpp | 12 SkFontStyle::SkFontStyle() { in SkFontStyle() function in SkFontStyle 19 SkFontStyle::SkFontStyle(int weight, int width, Slant slant) { in SkFontStyle() function in SkFontStyle 26 /*static*/SkFontStyle SkFontStyle::FromOldStyle(unsigned oldStyle) { in FromOldStyle() 27 return SkFontStyle((oldStyle & SkTypeface::kBold) ? SkFontStyle::kBold_Weight in FromOldStyle() 28 : SkFontStyle::kNormal_Weight, in FromOldStyle() 29 SkFontStyle::kNormal_Width, in FromOldStyle() 30 (oldStyle & SkTypeface::kItalic) ? SkFontStyle::kItalic_Slant in FromOldStyle() 31 : SkFontStyle::kUpright_Slant); in FromOldStyle()
|
D | SkFontMgr.cpp | 14 class SkFontStyle; 20 void getStyle(int, SkFontStyle*, SkString*) override { in getStyle() argument 27 SkTypeface* matchStyle(const SkFontStyle&) override { in matchStyle() argument 53 const SkFontStyle&) const override { in onMatchFamilyStyle() 57 const SkFontStyle& style, in onMatchFamilyStyleCharacter() 64 const SkFontStyle&) const override { in onMatchFaceStyle() 77 SkTypeface* onLegacyCreateTypeface(const char [], SkFontStyle) const override { in onLegacyCreateTypeface() 106 const SkFontStyle& fs) const { in matchFamilyStyle() 110 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, in matchFamilyStyleCharacter() 117 const SkFontStyle& fs) const { in matchFaceStyle() [all …]
|
D | SkTypeface.cpp | 20 SkTypeface::SkTypeface(const SkFontStyle& style, bool isFixedPitch) in SkTypeface() 32 sk_sp<SkTypeface> (*gCreateTypefaceDelegate)(const char[], SkFontStyle) = nullptr; 45 SkEmptyTypeface() : SkTypeface(SkFontStyle(), true) { } in SkEmptyTypeface() 96 SkTypeface* t = fm->legacyCreateTypeface(nullptr, SkFontStyle::FromOldStyle(style)); in GetDefaultTypeface() 120 SkFontStyle fontStyle) { in MakeFromName() 127 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName() 128 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName() 129 (fontStyle.weight() == SkFontStyle::kBold_Weight || in MakeFromName() 130 fontStyle.weight() == SkFontStyle::kNormal_Weight)) { in MakeFromName() 132 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName() [all …]
|
D | SkFontDescriptor.h | 59 SkFontStyle getStyle() { return fStyle; } in getStyle() 60 void setStyle(SkFontStyle style) { fStyle = style; } in setStyle() 80 SkFontStyle fStyle;
|
/external/skia/tools/ |
D | test_font_index.inc | 65 SkFontStyle fStyle; 71 { "monospace", SkFontStyle(), gTestFonts[0], "LiberationMono-Regular.ttf" }, 72 …{ "monospace", SkFontStyle::FromOldStyle(SkTypeface::kBold), gTestFonts[1], "LiberationMono-Bold.t… 73 …{ "monospace", SkFontStyle::FromOldStyle(SkTypeface::kItalic), gTestFonts[2], "LiberationMono-Ital… 74 …{ "monospace", SkFontStyle::FromOldStyle(SkTypeface::kBoldItalic), gTestFonts[3], "LiberationMono-… 75 { "sans-serif", SkFontStyle(), gTestFonts[4], "LiberationSans-Regular.ttf" }, 76 …{ "sans-serif", SkFontStyle::FromOldStyle(SkTypeface::kBold), gTestFonts[5], "LiberationSans-Bold.… 77 …{ "sans-serif", SkFontStyle::FromOldStyle(SkTypeface::kItalic), gTestFonts[6], "LiberationSans-Ita… 78 …{ "sans-serif", SkFontStyle::FromOldStyle(SkTypeface::kBoldItalic), gTestFonts[7], "LiberationSans… 79 { "serif", SkFontStyle(), gTestFonts[8], "LiberationSerif-Regular.ttf" }, [all …]
|
/external/skia/include/ports/ |
D | SkFontMgr.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; 127 SkTypeface* legacyCreateTypeface(const char familyName[], SkFontStyle style) const; 141 const SkFontStyle&) const = 0; 142 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 146 const SkFontStyle&) const = 0; [all …]
|
D | SkFontMgr_indirect.h | 21 class SkFontStyle; variable 42 const SkFontStyle& fontStyle) const override; 45 const SkFontStyle&, 51 const SkFontStyle& fontStyle) const override; 57 SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle) const override;
|
D | SkRemotableFontMgr.h | 33 SkFontStyle fFontStyle; 72 virtual SkFontIdentity matchIndexStyle(int familyIndex, const SkFontStyle&) const = 0; 110 virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontStyle&) const = 0; 122 virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], const SkFontStyle&,
|
D | SkFontConfigInterface.h | 61 SkFontStyle fStyle; 83 SkFontStyle requested, 86 SkFontStyle* outStyle) = 0;
|
/external/skia/src/ports/ |
D | SkFontMgr_custom.cpp | 28 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() 55 const SkFontStyle& style, bool isFixedPitch, bool sysFont, in SkTypeface_Stream() 71 SkTypeface_File::SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, in SkTypeface_File() 94 void SkFontStyleSet_Custom::getStyle(int index, SkFontStyle* style, SkString* name) { in getStyle() 109 SkTypeface* SkFontStyleSet_Custom::matchStyle(const SkFontStyle& pattern) { in matchStyle() 129 sk_sp<SkTypeface> tf(set->matchStyle(SkFontStyle(SkFontStyle::kNormal_Weight, in SkFontMgr_Custom() 130 SkFontStyle::kNormal_Width, in SkFontMgr_Custom() 131 SkFontStyle::kUpright_Slant))); in SkFontMgr_Custom() 168 const SkFontStyle& fontStyle) const in onMatchFamilyStyle() [all …]
|
D | SkFontMgr_custom.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 SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle style) const override;
|
D | SkTypeface_win_dw.h | 26 static SkFontStyle get_style(IDWriteFont* font) { in get_style() 29 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in get_style() 31 case DWRITE_FONT_STYLE_NORMAL: slant = SkFontStyle::kUpright_Slant; break; in get_style() 32 case DWRITE_FONT_STYLE_OBLIQUE: slant = SkFontStyle::kOblique_Slant; break; in get_style() 33 case DWRITE_FONT_STYLE_ITALIC: slant = SkFontStyle::kItalic_Slant; break; in get_style() 36 return SkFontStyle(weight, width, slant); in get_style() 41 DWriteFontTypeface(const SkFontStyle& style,
|
D | SkFontMgr_FontConfigInterface.cpp | 60 void getStyle(int index, SkFontStyle*, SkString* style) override { SkASSERT(false); } in getStyle() argument 62 SkTypeface* matchStyle(const SkFontStyle& pattern) override { return nullptr; } in matchStyle() 71 Request(const char* name, size_t nameLen, const SkFontStyle& style) : fStyle(style) { in Request() 86 const SkFontStyle fStyle; 91 static Request* Create(const char* name, const SkFontStyle& style) { in Create() 192 const SkFontStyle&) const override { return nullptr; } in onMatchFamilyStyle() 193 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, in onMatchFamilyStyleCharacter() argument 199 const SkFontStyle&) const override { return nullptr; } in onMatchFaceStyle() 215 SkFontStyle style; in onCreateFromStream() 237 SkFontStyle style; in onCreateFromStream() [all …]
|
D | SkFontMgr_android.cpp | 36 SkTypeface_Android(const SkFontStyle& style, in SkTypeface_Android() 60 const SkFontStyle& style, in SkTypeface_AndroidSystem() 114 const SkFontStyle& style, in SkTypeface_AndroidStream() 169 SkFontStyle style; in SkFontStyleSet_Android() 181 SkFontStyle::Slant slant = style.slant(); in SkFontStyleSet_Android() 184 case FontFileInfo::Style::kNormal: slant = SkFontStyle::kUpright_Slant; break; in SkFontStyleSet_Android() 185 case FontFileInfo::Style::kItalic: slant = SkFontStyle::kItalic_Slant; break; in SkFontStyleSet_Android() 188 style = SkFontStyle(weight, style.width(), slant); in SkFontStyleSet_Android() 220 void getStyle(int index, SkFontStyle* style, SkString* name) override { in getStyle() 238 SkTypeface_AndroidSystem* matchStyle(const SkFontStyle& pattern) override { in matchStyle() [all …]
|
D | SkFontConfigTypeface.h | 26 const SkFontStyle& style) in Create() 32 SkString familyName, SkFontStyle style, bool isFixedPitch) in Create() 45 const SkFontStyle& style) in SkTypeface_FCI() 53 SkString familyName, SkFontStyle style, bool isFixedPitch) in SkTypeface_FCI()
|
D | SkFontHost_FreeType.cpp | 1694 SkString* name, SkFontStyle* style, bool* isFixedPitch, AxisDefinitions* axes) const in scanFont() 1704 int weight = SkFontStyle::kNormal_Weight; in scanFont() 1705 int width = SkFontStyle::kNormal_Width; in scanFont() 1706 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in scanFont() 1708 weight = SkFontStyle::kBold_Weight; in scanFont() 1711 slant = SkFontStyle::kItalic_Slant; in scanFont() 1722 slant = SkFontStyle::kOblique_Slant; in scanFont() 1730 { "all", SkFontStyle::kNormal_Weight }, // Multiple Masters usually default to normal. in scanFont() 1731 { "black", SkFontStyle::kBlack_Weight }, in scanFont() 1732 { "bold", SkFontStyle::kBold_Weight }, in scanFont() [all …]
|
D | SkFontConfigInterface_direct.cpp | 109 SkFontStyle::Slant slant = (SkFontStyle::Slant)u8; in readFromMemory() 110 fStyle = SkFontStyle(weight, width, slant); in readFromMemory() 123 iden->fStyle = SkFontStyle(300, 6, SkFontStyle::kItalic_Slant); in make_iden() 413 static SkFontStyle skfontstyle_from_fcpattern(FcPattern* pattern) { in skfontstyle_from_fcpattern() 414 typedef SkFontStyle SkFS; in skfontstyle_from_fcpattern() 453 return SkFontStyle(weight, width, slant); in skfontstyle_from_fcpattern() 456 static void fcpattern_from_skfontstyle(SkFontStyle style, FcPattern* pattern) { in fcpattern_from_skfontstyle() 457 typedef SkFontStyle SkFS; in fcpattern_from_skfontstyle() 587 SkFontStyle style, in matchFamilyName() 590 SkFontStyle* outStyle) { in matchFamilyName()
|
D | SkFontMgr_fontconfig.cpp | 318 static SkFontStyle skfontstyle_from_fcpattern(FcPattern* pattern) { in skfontstyle_from_fcpattern() 319 typedef SkFontStyle SkFS; in skfontstyle_from_fcpattern() 358 return SkFontStyle(weight, width, slant); in skfontstyle_from_fcpattern() 361 static void fcpattern_from_skfontstyle(SkFontStyle style, FcPattern* pattern) { in fcpattern_from_skfontstyle() 364 typedef SkFontStyle SkFS; in fcpattern_from_skfontstyle() 410 SkString familyName, const SkFontStyle& style, bool fixedWidth) in SkTypeface_stream() 542 void getStyle(int index, SkFontStyle* style, SkString* styleName) override { in getStyle() 563 SkTypeface* matchStyle(const SkFontStyle& style) override { in matchStyle() 796 const SkFontStyle& style) const override in onMatchFamilyStyle() 834 const SkFontStyle& style, in onMatchFamilyStyleCharacter() [all …]
|
/external/skia/include/core/ |
D | SkFontStyle.h | 13 class SK_API SkFontStyle { 47 SkFontStyle(); 48 SkFontStyle(int weight, int width, Slant); 50 static SkFontStyle FromOldStyle(unsigned oldStyle); 52 bool operator==(const SkFontStyle& rhs) const {
|
D | SkTypeface.h | 57 SkFontStyle fontStyle() const { in fontStyle() 66 (fStyle.weight() >= SkFontStyle::kSemiBold_Weight ? kBold : kNormal) | in style() 67 (fStyle.slant() != SkFontStyle::kUpright_Slant ? kItalic : kNormal)); in style() 71 bool isBold() const { return fStyle.weight() >= SkFontStyle::kSemiBold_Weight; } in isBold() 74 bool isItalic() const { return fStyle.slant() != SkFontStyle::kUpright_Slant; } in isItalic() 123 static sk_sp<SkTypeface> MakeFromName(const char familyName[], SkFontStyle fontStyle); 332 SkTypeface(const SkFontStyle& style, bool isFixedPitch = false); 338 void setFontStyle(SkFontStyle style) { fStyle = style; } in setFontStyle() 395 SkFontStyle fStyle;
|
/external/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 34 void getStyle(int index, SkFontStyle* fs, SkString* style) override { in getStyle() 48 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle() 139 const SkFontStyle& fontStyle) const { in onMatchFamilyStyle() 145 const SkFontStyle& style, in onMatchFamilyStyleCharacter() 155 const SkFontStyle& fontStyle) const { in onMatchFaceStyle() 174 SkFontStyle style) const { in onLegacyCreateTypeface()
|
/external/skia/src/utils/win/ |
D | SkDWrite.h | 84 explicit DWriteStyle(const SkFontStyle& pattern) { in DWriteStyle() 88 case SkFontStyle::kUpright_Slant: fSlant = DWRITE_FONT_STYLE_NORMAL ; break; in DWriteStyle() 89 case SkFontStyle::kItalic_Slant: fSlant = DWRITE_FONT_STYLE_ITALIC ; break; in DWriteStyle() 90 case SkFontStyle::kOblique_Slant: fSlant = DWRITE_FONT_STYLE_OBLIQUE; break; in DWriteStyle()
|
/external/skia/gm/ |
D | downsamplebitmap.cpp | 33 static void setTypeface(SkPaint* paint, const char name[], SkFontStyle style) { in setTypeface() 129 setTypeface(&paint, "serif", SkFontStyle()); in make_bitmap() 131 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kBold)); in make_bitmap() 133 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kItalic)); in make_bitmap() 135 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kBoldItalic)); in make_bitmap()
|
D | filterbitmap.cpp | 16 static void setTypeface(SkPaint* paint, const char name[], SkFontStyle style) { in setTypeface() 127 setTypeface(&paint, "serif", SkFontStyle()); in makeBitmap() 129 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kBold)); in makeBitmap() 131 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kItalic)); in makeBitmap() 133 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kBoldItalic)); in makeBitmap()
|