Lines Matching refs:SkFontStyle
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()
507 if (theStyle.weight() >= SkFontStyle::kBold_Weight) { in NewFromName()
510 if (theStyle.slant() != SkFontStyle::kUpright_Slant) { in NewFromName()
567 gDefaultFace = NewFromName(FONT_DEFAULT_NAME, SkFontStyle()); in GetDefaultFace()
568 SkTypefaceCache::Add(gDefaultFace, SkFontStyle()); in GetDefaultFace()
599 SkFontStyle fStyle;
602 static bool find_by_NameStyle(SkTypeface* cachedFace, const SkFontStyle& cachedStyle, void* ctx) { in find_by_NameStyle()
2171 static int compute_metric(const SkFontStyle& a, const SkFontStyle& b) { in compute_metric()
2225 void getStyle(int index, SkFontStyle* style, SkString* name) override { in getStyle()
2245 SkTypeface* matchStyle(const SkFontStyle& pattern) override { in matchStyle()
2257 CTFontDescriptorRef findMatchingDesc(const SkFontStyle& pattern) const { in findMatchingDesc()
2334 const SkFontStyle& fontStyle) const override { in onMatchFamilyStyle()
2339 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, in onMatchFamilyStyleCharacter() argument
2346 const SkFontStyle&) const override { in onMatchFaceStyle()
2599 SkFontStyle style = SkFontStyle((SkTypeface::Style)styleBits); in onLegacyCreateTypeface()