HomeSort by relevance Sort by last modified time
    Searched refs:SkFontStyle (Results 1 - 25 of 77) sorted by null

1 2 3 4

  /external/skia/src/core/
SkFontStyle.cpp 8 #include "SkFontStyle.h"
12 SkFontStyle::SkFontStyle() {
19 SkFontStyle::SkFontStyle(int weight, int width, Slant slant) {
26 /*static*/SkFontStyle SkFontStyle::FromOldStyle(unsigned oldStyle) {
27 return SkFontStyle((oldStyle & SkTypeface::kBold) ? SkFontStyle::kBold_Weight
28 : SkFontStyle::kNormal_Weight
    [all...]
SkFontMgr.cpp 14 class SkFontStyle;
20 void getStyle(int, SkFontStyle*, SkString*) override {
27 SkTypeface* matchStyle(const SkFontStyle&) override {
53 const SkFontStyle&) const override {
57 const SkFontStyle& style,
64 const SkFontStyle&) const override {
77 SkTypeface* onLegacyCreateTypeface(const char [], SkFontStyle) const override {
106 const SkFontStyle& fs) const {
110 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style,
117 const SkFontStyle& fs) const
    [all...]
SkFontDescriptor.h 59 SkFontStyle getStyle() { return fStyle; }
60 void setStyle(SkFontStyle style) { fStyle = style; }
80 SkFontStyle fStyle;
SkTypeface.cpp 20 SkTypeface::SkTypeface(const SkFontStyle& style, bool isFixedPitch)
32 sk_sp<SkTypeface> (*gCreateTypefaceDelegate)(const char[], SkFontStyle) = nullptr;
45 SkEmptyTypeface() : SkTypeface(SkFontStyle(), true) { }
96 SkTypeface* t = fm->legacyCreateTypeface(nullptr, SkFontStyle::FromOldStyle(style));
120 SkFontStyle fontStyle) {
127 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant ||
128 fontStyle.slant() == SkFontStyle::kUpright_Slant) &&
129 (fontStyle.weight() == SkFontStyle::kBold_Weight ||
130 fontStyle.weight() == SkFontStyle::kNormal_Weight)) {
132 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic
    [all...]
  /external/skia/tools/
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.ttf" },
73 { "monospace", SkFontStyle::FromOldStyle(SkTypeface::kItalic), gTestFonts[2], "LiberationMono-Italic.ttf" },
74 { "monospace", SkFontStyle::FromOldStyle(SkTypeface::kBoldItalic), gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
75 { "sans-serif", SkFontStyle(), gTestFonts[4], "LiberationSans-Regular.ttf" },
76 { "sans-serif", SkFontStyle::FromOldStyle(SkTypeface::kBold), gTestFonts[5], "LiberationSans-Bold.ttf" },
77 { "sans-serif", SkFontStyle::FromOldStyle(SkTypeface::kItalic), gTestFonts[6], "LiberationSans-Italic.ttf" },
78 { "sans-serif", SkFontStyle::FromOldStyle(SkTypeface::kBoldItalic), gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
79 { "serif", SkFontStyle(), gTestFonts[8], "LiberationSerif-Regular.ttf" }
    [all...]
  /external/skia/tests/
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;
118 static const SkFontStyle invalidFontStyle(101, SkFontStyle::kNormal_Width, SkFontStyle::kUpright_Slant);
122 TestTypeface(const SkFontStyle& fontStyle) : SkTypeface(fontStyle, false){}
167 TestFontStyleSet(std::initializer_list<SkFontStyle> styles) : fStyles(styles) {}
169 void getStyle(int index, SkFontStyle* style, SkString*) override {
180 SkTypeface* matchStyle(const SkFontStyle& pattern) override
    [all...]
  /external/skia/include/ports/
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);
68 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const;
85 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
89 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const;
125 SkTypeface* legacyCreateTypeface(const char familyName[], SkFontStyle style) const;
139 const SkFontStyle&) const = 0;
140 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&
    [all...]
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&,
SkFontConfigInterface.h 12 #include "SkFontStyle.h"
62 SkFontStyle fStyle;
84 SkFontStyle requested,
87 SkFontStyle* outStyle) = 0;
SkFontMgr_indirect.h 21 class SkFontStyle;
42 const SkFontStyle& fontStyle) const override;
45 const SkFontStyle&,
51 const SkFontStyle& fontStyle) const override;
57 SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle) const override;
  /external/skia/include/core/
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 {
SkTypeface.h 15 #include "SkFontStyle.h"
57 SkFontStyle fontStyle() const {
66 (fStyle.weight() >= SkFontStyle::kSemiBold_Weight ? kBold : kNormal) |
67 (fStyle.slant() != SkFontStyle::kUpright_Slant ? kItalic : kNormal));
71 bool isBold() const { return fStyle.weight() >= SkFontStyle::kSemiBold_Weight; }
74 bool isItalic() const { return fStyle.slant() != SkFontStyle::kUpright_Slant; }
116 face specifiers as in the SkFontStyle type. Will never return null.
123 static sk_sp<SkTypeface> MakeFromName(const char familyName[], SkFontStyle fontStyle);
336 SkTypeface(const SkFontStyle& style, bool isFixedPitch = false);
342 void setFontStyle(SkFontStyle style) { fStyle = style;
    [all...]
  /external/skia/src/ports/
SkFontConfigInterface_direct.h 20 SkFontStyle requested,
23 SkFontStyle* outStyle) override;
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 SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle style) const override
    [all...]
SkFontMgr_custom.cpp 13 #include "SkFontStyle.h"
28 SkTypeface_Custom::SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch,
49 SkTypeface_Empty::SkTypeface_Empty() : INHERITED(SkFontStyle(), false, true, SkString(), 0) {}
55 const SkFontStyle& style, bool isFixedPitch, bool sysFont,
71 SkTypeface_File::SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont,
94 void SkFontStyleSet_Custom::getStyle(int index, SkFontStyle* style, SkString* name) {
109 SkTypeface* SkFontStyleSet_Custom::matchStyle(const SkFontStyle& pattern) {
129 sk_sp<SkTypeface> tf(set->matchStyle(SkFontStyle(SkFontStyle::kNormal_Weight,
130 SkFontStyle::kNormal_Width
    [all...]
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,
SkFontConfigTypeface.h 26 const SkFontStyle& style)
32 SkString familyName, SkFontStyle style, bool isFixedPitch)
45 const SkFontStyle& style)
53 SkString familyName, SkFontStyle style, bool isFixedPitch)
SkFontMgr_FontConfigInterface.cpp 13 #include "SkFontStyle.h"
60 void getStyle(int index, SkFontStyle*, SkString* style) override { SkASSERT(false); }
62 SkTypeface* matchStyle(const SkFontStyle& pattern) override { return nullptr; }
71 Request(const char* name, size_t nameLen, const SkFontStyle& style) : fStyle(style) {
86 const SkFontStyle fStyle;
91 static Request* Create(const char* name, const SkFontStyle& style) {
192 const SkFontStyle&) const override { return nullptr; }
193 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
199 const SkFontStyle&) const override { return nullptr; }
215 SkFontStyle style
    [all...]
SkFontMgr_android.cpp 17 #include "SkFontStyle.h"
36 SkTypeface_Android(const SkFontStyle& style,
60 const SkFontStyle& style,
114 const SkFontStyle& style,
169 SkFontStyle style;
181 SkFontStyle::Slant slant = style.slant();
184 case FontFileInfo::Style::kNormal: slant = SkFontStyle::kUpright_Slant; break;
185 case FontFileInfo::Style::kItalic: slant = SkFontStyle::kItalic_Slant; break;
188 style = SkFontStyle(weight, style.width(), slant);
220 void getStyle(int index, SkFontStyle* style, SkString* name) override
    [all...]
SkFontHost_FreeType_common.h 61 SkString* name, SkFontStyle* style, bool* isFixedPitch,
76 SkTypeface_FreeType(const SkFontStyle& style, bool isFixedPitch)
  /external/skia/src/utils/win/
SkDWrite.h 11 #include "SkFontStyle.h"
84 explicit DWriteStyle(const SkFontStyle& pattern) {
88 case SkFontStyle::kUpright_Slant: fSlant = DWRITE_FONT_STYLE_NORMAL ; break;
89 case SkFontStyle::kItalic_Slant: fSlant = DWRITE_FONT_STYLE_ITALIC ; break;
90 case SkFontStyle::kOblique_Slant: fSlant = DWRITE_FONT_STYLE_OBLIQUE; break;
  /external/skia/gm/
downsamplebitmap.cpp 33 static void setTypeface(SkPaint* paint, const char name[], SkFontStyle style) {
129 setTypeface(&paint, "serif", SkFontStyle());
131 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kBold));
133 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kItalic));
135 setTypeface(&paint, "serif", SkFontStyle::FromOldStyle(SkTypeface::kBoldItalic));
fontcache.cpp 37 SkFontStyle::FromOldStyle(SkTypeface::kItalic));
39 SkFontStyle::FromOldStyle(SkTypeface::kItalic));
  /external/skia/bench/
SkGlyphCacheBench.cpp 60 "serif", SkFontStyle::FromOldStyle(SkTypeface::kItalic)));
93 SkFontStyle::FromOldStyle(SkTypeface::kItalic)),
95 SkFontStyle::FromOldStyle(SkTypeface::kItalic))};
  /external/skia/src/fonts/
SkTestScalerContext.h 42 SkFontStyle fDebugStyle;
59 SkTestTypeface(sk_sp<SkTestFont>, const SkFontStyle& style);

Completed in 250 milliseconds

1 2 3 4