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

1 2

  /external/skia/src/core/
SkFontStyle.cpp 8 #include "SkFontStyle.h"
12 SkFontStyle::SkFontStyle() {
19 SkFontStyle::SkFontStyle(int weight, int width, Slant slant) {
26 SkFontStyle::SkFontStyle(unsigned oldStyle) {
28 fUnion.fR.fWeight = (oldStyle & SkTypeface::kBold) ? SkFontStyle::kBold_Weight
29 : SkFontStyle::kNormal_Weight;
30 fUnion.fR.fWidth = SkFontStyle::kNormal_Width
    [all...]
SkTypefaceCache.h 34 typedef bool(*FindProc)(SkTypeface*, const SkFontStyle&, void* context);
42 void add(SkTypeface*, const SkFontStyle& requested);
67 static void Add(SkTypeface*, const SkFontStyle& requested);
83 SkFontStyle fRequestedStyle;
SkFontMgr.cpp 13 class SkFontStyle;
19 void getStyle(int, SkFontStyle*, SkString*) override {
26 SkTypeface* matchStyle(const SkFontStyle&) override {
54 const SkFontStyle&) const override {
58 const SkFontStyle& style,
65 const SkFontStyle&) const override {
107 const SkFontStyle& fs) const {
111 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style,
118 const SkFontStyle& fs) const {
SkTypeface.cpp 17 SkTypeface::SkTypeface(const SkFontStyle& style, SkFontID fontID, bool isFixedPitch)
30 SkEmptyTypeface() : SkTypeface(SkFontStyle(), 0, true) { }
133 SkFontStyle newStyle = SkFontStyle(bold ? SkFontStyle::kBold_Weight
134 : SkFontStyle::kNormal_Weight,
135 SkFontStyle::kNormal_Width,
136 italic ? SkFontStyle::kItalic_Slant
137 : SkFontStyle::kUpright_Slant);
SkTypefaceCache.cpp 27 void SkTypefaceCache::add(SkTypeface* face, const SkFontStyle& requestedStyle) {
86 void SkTypefaceCache::Add(SkTypeface* face, const SkFontStyle& requestedStyle) {
105 static bool DumpProc(SkTypeface* face, const SkFontStyle& s, void* ctx) {
  /external/skia/include/ports/
SkFontMgr.h 12 #include "SkFontStyle.h"
24 virtual void getStyle(int index, SkFontStyle*, SkString* style) = 0;
26 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0;
63 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const;
77 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
81 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const;
123 const SkFontStyle&) const = 0;
124 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
128 const SkFontStyle&) const = 0;
SkRemotableFontMgr.h 11 #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;
67 * matchIndexStyle(int, SkFontStyle).
87 virtual SkFontIdentity matchIndexStyle(int familyIndex, const SkFontStyle&) const = 0;
95 * getIndex(int) or matchIndexStyle(int, SkFontStyle) due to
125 virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontStyle&) const = 0;
137 virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], const SkFontStyle&,
SkFontMgr_indirect.h 13 #include "SkFontStyle.h"
40 const SkFontStyle& fontStyle) const override;
43 const SkFontStyle&,
49 const SkFontStyle& fontStyle) const override;
SkFontConfigInterface.h 12 #include "SkFontStyle.h"
63 SkFontStyle fStyle;
  /external/skia/include/core/
SkFontStyle.h 13 class SK_API SkFontStyle {
44 SkFontStyle();
45 SkFontStyle(int weight, int width, Slant);
47 explicit SkFontStyle(unsigned oldStyle);
49 bool operator==(const SkFontStyle& rhs) const {
SkTypeface.h 13 #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; }
323 SkTypeface(const SkFontStyle& style, SkFontID uniqueID, bool isFixedPitch = false);
395 SkFontStyle fStyle;
  /external/skia/src/ports/
SkFontConfigTypeface.h 21 static FontConfigTypeface* Create(const SkFontStyle& style,
27 static FontConfigTypeface* Create(const SkFontStyle& style, bool fixedWidth,
45 FontConfigTypeface(const SkFontStyle& style,
53 FontConfigTypeface(const SkFontStyle& style, bool fixedWidth, SkStreamAsset* localStream)
SkFontHost_linux.cpp 27 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch,
61 SkTypeface_Empty() : INHERITED(SkFontStyle(), false, true, SkString(), 0) {}
73 SkTypeface_Stream(const SkFontStyle& style, bool isFixedPitch, bool sysFont,
101 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont,
145 void getStyle(int index, SkFontStyle* style, SkString* name) override {
149 *style = SkFontStyle(bold ? SkFontStyle::kBold_Weight : SkFontStyle::kNormal_Weight,
150 SkFontStyle::kNormal_Width,
151 italic ? SkFontStyle::kItalic_Slant : SkFontStyle::kUpright_Slant)
    [all...]
SkFontHost_fontconfig.cpp 62 NameStyle(const char* name, const SkFontStyle& style)
67 SkFontStyle fStyle;
71 const SkFontStyle& cachedStyle,
81 static bool find_by_FontIdentity(SkTypeface* cachedTypeface, const SkFontStyle&, void* ctx) {
98 SkFontStyle requestedStyle(style);
118 face = FontConfigTypeface::Create(SkFontStyle(outStyle), indentity, outFamilyName);
SkTypeface_win_dw.h 27 static SkFontStyle get_style(IDWriteFont* font) {
29 return SkFontStyle(font->GetWeight(),
33 ? SkFontStyle::kItalic_Slant
34 : SkFontStyle::kUpright_Slant);
39 DWriteFontTypeface(const SkFontStyle& style, SkFontID fontID,
SkFontMgr_android.cpp 13 #include "SkFontStyle.h"
31 const SkFontStyle& style,
54 const SkFontStyle& style,
88 const SkFontStyle& style,
138 SkFontStyle style;
147 SkFontStyle::Slant slant = style.slant();
150 case FontFileInfo::Style::kNormal: slant = SkFontStyle::kUpright_Slant; break;
151 case FontFileInfo::Style::kItalic: slant = SkFontStyle::kItalic_Slant; break;
154 style = SkFontStyle(weight, style.width(), slant);
179 void getStyle(int index, SkFontStyle* style, SkString* name) override
    [all...]
SkFontHost_FreeType_common.h 48 SkString* name, SkFontStyle* style, bool* isFixedPitch) const;
56 SkTypeface_FreeType(const SkFontStyle& style, SkFontID uniqueID, bool isFixedPitch)
SkFontMgr_fontconfig.cpp 12 #include "SkFontStyle.h"
300 static SkFontStyle skfontstyle_from_fcpattern(FcPattern* pattern) {
301 typedef SkFontStyle SkFS;
336 return SkFontStyle(weight, width, slant);
339 static void fcpattern_from_skfontstyle(SkFontStyle style, FcPattern* pattern) {
342 typedef SkFontStyle SkFS;
379 SkTypeface_stream(const SkFontStyle& style, bool fixedWidth, int index, SkStreamAsset* stream)
473 void getStyle(int index, SkFontStyle* style, SkString* styleName) override {
494 SkTypeface* matchStyle(const SkFontStyle& style) override {
567 static bool FindByFcPattern(SkTypeface* cached, const SkFontStyle&, void* ctx)
    [all...]
SkFontHost_FreeType.cpp     [all...]
SkFontMgr_win_dw.cpp 285 const SkFontStyle& fontstyle) const override;
286 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&,
290 const SkFontStyle& fontstyle) const override;
328 void getStyle(int index, SkFontStyle* fs, SkString* styleName) override;
330 SkTypeface* matchStyle(const SkFontStyle& pattern) override;
354 static bool FindByDWriteFont(SkTypeface* cached, const SkFontStyle&, void* ctx) {
501 const SkFontStyle& fontstyle) const {
732 const SkFontStyle& style,
830 const SkFontStyle& fontstyle) const {
    [all...]
SkRemotableFontMgr_win_dw.cpp 141 SkFontStyle::Slant slant;
144 slant = SkFontStyle::kUpright_Slant;
148 slant = SkFontStyle::kItalic_Slant;
157 fontId->fFontStyle = SkFontStyle(weight, width, slant);
180 const SkFontStyle& pattern) const override
242 const SkFontStyle& style) const override
391 const SkFontStyle& pattern,
  /external/skia/src/fonts/
SkFontMgr_indirect.cpp 11 #include "SkFontStyle.h"
30 void getStyle(int index, SkFontStyle* fs, SkString* style) override {
44 SkTypeface* matchStyle(const SkFontStyle& pattern) override {
86 const SkFontStyle& current = fData->at(i).fFontStyle;
91 if (pattern.width() <= SkFontStyle::kNormal_Width) {
243 const SkFontStyle& fontStyle) const {
249 const SkFontStyle& style,
259 const SkFontStyle& fontStyle) const {
281 SkFontStyle style = SkFontStyle(bold ? SkFontStyle::kBold_Weigh
    [all...]
SkFontMgr_fontconfig.cpp 9 #include "SkFontStyle.h"
146 void getStyle(int index, SkFontStyle*, SkString* style) override;
148 SkTypeface* matchStyle(const SkFontStyle& pattern) override;
154 SkFontStyle fStyle;
168 static SkFontStyle make_fontconfig_style(FcPattern* match) {
177 return SkFontStyle(weight, width, slant > 0 ? SkFontStyle::kItalic_Slant
178 : SkFontStyle::kUpright_Slant);
195 void SkFontStyleSet_FC::getStyle(int index, SkFontStyle* style,
210 SkTypeface* SkFontStyleSet_FC::matchStyle(const SkFontStyle& pattern)
    [all...]
  /external/skia/src/utils/win/
SkDWrite.h 12 #include "SkFontStyle.h"
92 explicit DWriteStyle(const SkFontStyle& pattern) {
94 case SkFontStyle::kUpright_Slant:
97 case SkFontStyle::kItalic_Slant:
  /external/skia/gm/
fontmgr.cpp 30 const SkFontStyle& fontStyle) {
101 SkFontStyle fs;
148 SkFontStyle fs;
166 SkFontStyle fs(weight, width, SkFontStyle::kUpright_Slant);

Completed in 428 milliseconds

1 2