/external/skia/tests/ |
D | FontMgrTest.cpp | 104 SkFontStyle fs; in test_fontiter() 121 …static const SkFontStyle invalidFontStyle(101, SkFontStyle::kNormal_Width, SkFontStyle::kUpright_S… in test_matchStyleCSS3() 125 TestTypeface(const SkFontStyle& fontStyle, SkFontID id) : SkTypeface(fontStyle, id, false){} in test_matchStyleCSS3() 163 TestFontStyleSet(std::initializer_list<SkFontStyle> styles) : fStyles(styles) {} in test_matchStyleCSS3() 165 void getStyle(int index, SkFontStyle* style, SkString*) override { in test_matchStyleCSS3() 176 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in test_matchStyleCSS3() 180 std::vector<SkFontStyle> fStyles; in test_matchStyleCSS3() 183 …SkFontStyle condensed_normal_100(SkFontStyle::kThin_Weight, SkFontStyle::kCondensed_Width, SkFont… in test_matchStyleCSS3() 184 …SkFontStyle condensed_normal_900(SkFontStyle::kBlack_Weight, SkFontStyle::kCondensed_Width, SkFont… in test_matchStyleCSS3() 185 …SkFontStyle condensed_italic_100(SkFontStyle::kThin_Weight, SkFontStyle::kCondensed_Width, SkFont… in test_matchStyleCSS3() [all …]
|
/external/skia/src/ports/ |
D | SkFontMgr_custom.cpp | 30 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch, in SkTypeface_Custom() 63 SkTypeface_Empty() : INHERITED(SkFontStyle(), false, true, SkString(), 0) {} in SkTypeface_Empty() 75 SkTypeface_Stream(const SkFontStyle& style, bool isFixedPitch, bool sysFont, in SkTypeface_Stream() 96 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, in SkTypeface_File() 134 void getStyle(int index, SkFontStyle* style, SkString* name) override { in getStyle() 138 *style = SkFontStyle(bold ? SkFontStyle::kBold_Weight : SkFontStyle::kNormal_Weight, in getStyle() 139 SkFontStyle::kNormal_Width, in getStyle() 140 italic ? SkFontStyle::kItalic_Slant : SkFontStyle::kUpright_Slant); in getStyle() 149 static int match_score(const SkFontStyle& pattern, const SkFontStyle& candidate) { in match_score() 157 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle() [all …]
|
D | SkFontMgr_android.cpp | 35 SkTypeface_Android(const SkFontStyle& style, in SkTypeface_Android() 59 const SkFontStyle& style, in SkTypeface_AndroidSystem() 111 const SkFontStyle& style, in SkTypeface_AndroidStream() 166 SkFontStyle style; in SkFontStyleSet_Android() 178 SkFontStyle::Slant slant = style.slant(); in SkFontStyleSet_Android() 181 case FontFileInfo::Style::kNormal: slant = SkFontStyle::kUpright_Slant; break; in SkFontStyleSet_Android() 182 case FontFileInfo::Style::kItalic: slant = SkFontStyle::kItalic_Slant; break; in SkFontStyleSet_Android() 185 style = SkFontStyle(weight, style.width(), slant); in SkFontStyleSet_Android() 214 void getStyle(int index, SkFontStyle* style, SkString* name) override { in getStyle() 236 SkTypeface_AndroidSystem* matchStyle(const SkFontStyle& pattern) override { in matchStyle() [all …]
|
D | SkFontMgr_fontconfig.cpp | 308 static SkFontStyle skfontstyle_from_fcpattern(FcPattern* pattern) { in skfontstyle_from_fcpattern() 309 typedef SkFontStyle SkFS; in skfontstyle_from_fcpattern() 344 return SkFontStyle(weight, width, slant); in skfontstyle_from_fcpattern() 347 static void fcpattern_from_skfontstyle(SkFontStyle style, FcPattern* pattern) { in fcpattern_from_skfontstyle() 350 typedef SkFontStyle SkFS; in fcpattern_from_skfontstyle() 387 SkTypeface_stream(SkFontData* data, const SkFontStyle& style, bool fixedWidth) in SkTypeface_stream() 481 void getStyle(int index, SkFontStyle* style, SkString* styleName) override { in getStyle() 502 SkTypeface* matchStyle(const SkFontStyle& style) override { in matchStyle() 575 static bool FindByFcPattern(SkTypeface* cached, const SkFontStyle&, void* ctx) { in FindByFcPattern() argument 594 fTFCache.add(face, SkFontStyle()); in createTypefaceFromFcPattern() [all …]
|
D | SkFontHost_fontconfig.cpp | 61 static bool find_by_FontIdentity(SkTypeface* cachedTypeface, const SkFontStyle&, void* ctx) { in find_by_FontIdentity() argument 84 Request(const char* name, size_t nameLen, const SkFontStyle& style) : fStyle(style) { in Request() 99 const SkFontStyle fStyle; 104 static Request* Create(const char* name, const SkFontStyle& style) { in Create() 178 SkFontStyle requestedStyle(requestedOldStyle); in LegacyCreateTypeface() 197 face = FontConfigTypeface::Create(SkFontStyle(outOldStyle), identity, outFamilyName); in LegacyCreateTypeface() 199 SkTypefaceCache::Add(face, SkFontStyle(outOldStyle)); in LegacyCreateTypeface()
|
D | SkFontConfigTypeface.h | 21 static FontConfigTypeface* Create(const SkFontStyle& style, in Create() 27 static FontConfigTypeface* Create(const SkFontStyle& style, bool fixedWidth, in Create() 45 FontConfigTypeface(const SkFontStyle& style, in FontConfigTypeface() 53 FontConfigTypeface(const SkFontStyle& style, bool fixedWidth, SkStreamAsset* localStream) in FontConfigTypeface()
|
D | SkTypeface_win_dw.h | 27 static SkFontStyle get_style(IDWriteFont* font) { in get_style() 29 return SkFontStyle(font->GetWeight(), in get_style() 33 ? SkFontStyle::kItalic_Slant in get_style() 34 : SkFontStyle::kUpright_Slant); in get_style() 39 DWriteFontTypeface(const SkFontStyle& style, SkFontID fontID,
|
D | SkFontHost_FreeType.cpp | 1661 SkString* name, SkFontStyle* style, bool* isFixedPitch, AxisDefinitions* axes) const in scanFont() 1671 int weight = SkFontStyle::kNormal_Weight; in scanFont() 1672 int width = SkFontStyle::kNormal_Width; in scanFont() 1673 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in scanFont() 1675 weight = SkFontStyle::kBold_Weight; in scanFont() 1678 slant = SkFontStyle::kItalic_Slant; in scanFont() 1692 { "all", SkFontStyle::kNormal_Weight }, // Multiple Masters usually default to normal. in scanFont() 1693 { "black", SkFontStyle::kBlack_Weight }, in scanFont() 1694 { "bold", SkFontStyle::kBold_Weight }, in scanFont() 1695 { "book", (SkFontStyle::kNormal_Weight + SkFontStyle::kLight_Weight)/2 }, in scanFont() [all …]
|
D | SkFontMgr_win_dw.cpp | 288 const SkFontStyle& fontstyle) const override; 289 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 293 const SkFontStyle& fontstyle) const override; 331 void getStyle(int index, SkFontStyle* fs, SkString* styleName) override; 333 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 357 static bool FindByDWriteFont(SkTypeface* cached, const SkFontStyle&, void* ctx) { in FindByDWriteFont() argument 504 const SkFontStyle& fontstyle) const { in onMatchFamilyStyle() 735 const SkFontStyle& style, in onMatchFamilyStyleCharacter() 833 const SkFontStyle& fontstyle) const { in onMatchFaceStyle() 1007 void SkFontStyleSet_DirectWrite::getStyle(int index, SkFontStyle* fs, SkString* styleName) { in getStyle() [all …]
|
D | SkRemotableFontMgr_win_dw.cpp | 140 SkFontStyle::Slant slant; in FontToIdentity() 143 slant = SkFontStyle::kUpright_Slant; in FontToIdentity() 147 slant = SkFontStyle::kItalic_Slant; in FontToIdentity() 156 fontId->fFontStyle = SkFontStyle(weight, width, slant); in FontToIdentity() 179 const SkFontStyle& pattern) const override in matchIndexStyle() 241 const SkFontStyle& style) const override in matchNameStyle() 390 const SkFontStyle& pattern, in matchNameStyleCharacter()
|
D | SkFontHost_mac.cpp | 391 static SkFontStyle fontstyle_from_descriptor(CTFontDescriptorRef desc) { in fontstyle_from_descriptor() 395 return SkFontStyle(); in fontstyle_from_descriptor() 409 return SkFontStyle(unit_weight_to_fontstyle(weight), in fontstyle_from_descriptor() 411 slant ? SkFontStyle::kItalic_Slant in fontstyle_from_descriptor() 412 : SkFontStyle::kUpright_Slant); in fontstyle_from_descriptor() 431 #define WEIGHT_THRESHOLD ((SkFontStyle::kNormal_Weight + SkFontStyle::kBold_Weight)/2) 444 const SkFontStyle& fs, bool isFixedPitch, in SkTypeface_Mac() 492 SkFontStyle style = SkFontStyle(computeStyleBits(fontRef, &isFixedPitch)); in NewFromFontRef() 497 static bool find_by_CTFontRef(SkTypeface* cached, const SkFontStyle&, void* context) { in find_by_CTFontRef() argument 505 static SkTypeface* NewFromName(const char familyName[], const SkFontStyle& theStyle) { in NewFromName() [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 SkFontStyle::SkFontStyle(unsigned oldStyle) { in SkFontStyle() function in SkFontStyle 28 fUnion.fR.fWeight = (oldStyle & SkTypeface::kBold) ? SkFontStyle::kBold_Weight in SkFontStyle() 29 : SkFontStyle::kNormal_Weight; in SkFontStyle() 30 fUnion.fR.fWidth = SkFontStyle::kNormal_Width; in SkFontStyle() 31 fUnion.fR.fSlant = (oldStyle & SkTypeface::kItalic) ? SkFontStyle::kItalic_Slant in SkFontStyle() 32 : SkFontStyle::kUpright_Slant; in SkFontStyle()
|
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() 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() 206 SkTypeface* SkFontStyleSet::matchStyleCSS3(const SkFontStyle& pattern) { in matchStyleCSS3() [all …]
|
D | 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;
|
D | SkTypeface.cpp | 18 SkTypeface::SkTypeface(const SkFontStyle& style, SkFontID fontID, bool isFixedPitch) in SkTypeface() 40 SkEmptyTypeface() : SkTypeface(SkFontStyle(), 0, true) { } in SkEmptyTypeface() 138 SkFontStyle newStyle = SkFontStyle(bold ? SkFontStyle::kBold_Weight in CreateFromTypeface() 139 : SkFontStyle::kNormal_Weight, in CreateFromTypeface() 140 SkFontStyle::kNormal_Width, in CreateFromTypeface() 141 italic ? SkFontStyle::kItalic_Slant in CreateFromTypeface() 142 : SkFontStyle::kUpright_Slant); in CreateFromTypeface()
|
D | SkTypefaceCache.cpp | 28 void SkTypefaceCache::add(SkTypeface* face, const SkFontStyle& requestedStyle) { in add() 87 void SkTypefaceCache::Add(SkTypeface* face, const SkFontStyle& requestedStyle) { in Add() 106 static bool DumpProc(SkTypeface* face, const SkFontStyle& s, void* ctx) { in DumpProc()
|
/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); 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; 185 const SkFontStyle&) const = 0; 186 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 190 const SkFontStyle&) const = 0;
|
D | SkRemotableFontMgr.h | 33 SkFontStyle fFontStyle; 83 virtual SkFontIdentity matchIndexStyle(int familyIndex, const SkFontStyle&) const = 0; 121 virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontStyle&) const = 0; 133 virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], const SkFontStyle&,
|
D | SkFontMgr_indirect.h | 21 class SkFontStyle; variable 42 const SkFontStyle& fontStyle) const override; 45 const SkFontStyle&, 51 const SkFontStyle& fontStyle) const override;
|
/external/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 35 void getStyle(int index, SkFontStyle* fs, SkString* style) override { in getStyle() 49 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle() 153 const SkFontStyle& fontStyle) const { in onMatchFamilyStyle() 159 const SkFontStyle& style, in onMatchFamilyStyleCharacter() 169 const SkFontStyle& fontStyle) const { in onMatchFaceStyle() 191 SkFontStyle style = SkFontStyle(bold ? SkFontStyle::kBold_Weight in onLegacyCreateTypeface() 192 : SkFontStyle::kNormal_Weight, in onLegacyCreateTypeface() 193 SkFontStyle::kNormal_Width, in onLegacyCreateTypeface() 194 italic ? SkFontStyle::kItalic_Slant in onLegacyCreateTypeface() 195 : SkFontStyle::kUpright_Slant); in onLegacyCreateTypeface()
|
D | SkFontMgr_fontconfig.cpp | 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) { in make_fontconfig_style() 177 return SkFontStyle(weight, width, slant > 0 ? SkFontStyle::kItalic_Slant in make_fontconfig_style() 178 : SkFontStyle::kUpright_Slant); in make_fontconfig_style() 193 void SkFontStyleSet_FC::getStyle(int index, SkFontStyle* style, in getStyle() 208 SkTypeface* SkFontStyleSet_FC::matchStyle(const SkFontStyle& pattern) { in matchStyle() 284 const SkFontStyle&) const override { return nullptr; } in onMatchFamilyStyle() 285 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, in onMatchFamilyStyleCharacter() argument [all …]
|
/external/skia/include/core/ |
D | 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 {
|
D | SkTypeface.h | 56 SkFontStyle fontStyle() const { in fontStyle() 65 (fStyle.weight() >= SkFontStyle::kSemiBold_Weight ? kBold : kNormal) | in style() 66 (fStyle.slant() != SkFontStyle::kUpright_Slant ? kItalic : kNormal)); in style() 70 bool isBold() const { return fStyle.weight() >= SkFontStyle::kSemiBold_Weight; } in isBold() 73 bool isItalic() const { return fStyle.slant() != SkFontStyle::kUpright_Slant; } in isItalic() 330 SkTypeface(const SkFontStyle& style, SkFontID uniqueID, bool isFixedPitch = false); 403 SkFontStyle fStyle;
|
/external/skia/src/utils/win/ |
D | SkDWrite.h | 92 explicit DWriteStyle(const SkFontStyle& pattern) { in DWriteStyle() 94 case SkFontStyle::kUpright_Slant: in DWriteStyle() 97 case SkFontStyle::kItalic_Slant: in DWriteStyle()
|
/external/skia/gm/ |
D | fontmgr.cpp | 30 const SkFontStyle& fontStyle) { in drawCharacter() 103 SkFontStyle fs; in onDraw() 153 SkFontStyle fs; in iterateFamily() 171 SkFontStyle fs(weight, width, SkFontStyle::kUpright_Slant); in exploreFamily()
|