/third_party/skia/docs/examples/ |
D | SkFontMgr_example2.cpp | 24 SkFontStyle fontStyle; in draw() local 26 styleSet->getStyle(j, &fontStyle, &style); in draw() 30 familyName.c_str(), fontStyle.weight(), fontStyle.width(), in draw() 31 tostr(fontStyle.slant()), textScale); in draw() 32 SkFont font(mgr->legacyMakeTypeface(familyName.c_str(), fontStyle), textScale); in draw()
|
D | SkFontMgr_example.cpp | 24 SkFontStyle fontStyle; in draw() local 26 styleSet->getStyle(j, &fontStyle, &style); in draw() 29 familyName.c_str(), fontStyle.weight(), fontStyle.width(), in draw() 30 tostr(fontStyle.slant())); in draw()
|
D | text_rendering.cpp | 7 SkFontStyle fontStyle; // Default is normal weight, normal width, upright slant. in draw() local 9 sk_sp<SkTypeface> typeface = fontManager->legacyMakeTypeface(fontFamily, fontStyle); in draw()
|
/third_party/flutter/skia/modules/skparagraph/src/ |
D | FontCollection.cpp | 68 sk_sp<SkTypeface> FontCollection::matchTypeface(const char familyName[], SkFontStyle fontStyle) { in matchTypeface() argument 70 FamilyKey familyKey(familyName, "en", fontStyle); in matchTypeface() 87 sk_sp<SkTypeface> match(set->matchStyle(fontStyle)); in matchTypeface() 97 sk_sp<SkTypeface> FontCollection::matchDefaultTypeface(SkFontStyle fontStyle) { in matchDefaultTypeface() argument 99 FamilyKey familyKey(fDefaultFamilyName, "en", fontStyle); in matchDefaultTypeface() 116 sk_sp<SkTypeface> match(set->matchStyle(fontStyle)); in matchDefaultTypeface() 126 sk_sp<SkTypeface> FontCollection::defaultFallback(SkUnichar unicode, SkFontStyle fontStyle, const S… in defaultFallback() argument 134 0, fontStyle, bcp47.data(), bcp47.size(), unicode)); in defaultFallback() 143 auto result = fDefaultFontManager->matchFamilyStyle(fDefaultFamilyName, fontStyle); in defaultFallback()
|
/third_party/skia/modules/skparagraph/src/ |
D | FontCollection.cpp | 77 …>> FontCollection::findTypefaces(const std::vector<SkString>& familyNames, SkFontStyle fontStyle) { in findTypefaces() argument 79 FamilyKey familyKey(familyNames, fontStyle); in findTypefaces() 87 sk_sp<SkTypeface> match = matchTypeface(familyName, fontStyle); in findTypefaces() 96 match = matchTypeface(familyName, fontStyle); in findTypefaces() 103 match = manager->legacyMakeTypeface(nullptr, fontStyle); in findTypefaces() 118 sk_sp<SkTypeface> FontCollection::matchTypeface(const SkString& familyName, SkFontStyle fontStyle) { in matchTypeface() argument 125 sk_sp<SkTypeface> match(set->matchStyle(fontStyle)); in matchTypeface() 135 sk_sp<SkTypeface> FontCollection::defaultFallback(SkUnichar unicode, SkFontStyle fontStyle, const S… in defaultFallback() argument 143 nullptr, fontStyle, bcp47.data(), bcp47.size(), unicode)); in defaultFallback()
|
/third_party/skia/experimental/sktext/src/ |
D | Paint.h | 23 TrivialFontChain(const char* ff, SkScalar size, SkFontStyle fontStyle) in TrivialFontChain() argument 26 , fFontStyle(fontStyle) { } in TrivialFontChain() 45 MultipleFontChain(std::vector<const char*> ffs, SkScalar size, SkFontStyle fontStyle) in MultipleFontChain() argument 47 , fFontStyle(fontStyle) { in MultipleFontChain() 79 const SkString& fontFamily, SkScalar fontSize, SkFontStyle fontStyle, 84 const SkString& fontFamily, SkScalar fontSize, SkFontStyle fontStyle,
|
D | Paint.cpp | 24 … const SkString& fontFamily, SkScalar fontSize, SkFontStyle fontStyle, SkScalar x, SkScalar y) { in drawText() argument 27 … fontFamily, fontSize, fontStyle, SkSize::Make(SK_ScalarInfinity, SK_ScalarInfinity), x, y); in drawText() 33 …const SkString& fontFamily, SkScalar fontSize, SkFontStyle fontStyle, SkSize reqSize, SkScalar x, … in drawText() argument 36 …rivialFontChain> fontChain = sk_make_sp<TrivialFontChain>(fontFamily.c_str(), fontSize, fontStyle); in drawText()
|
/third_party/flutter/skia/src/ports/ |
D | SkFontMgr_custom.cpp | 42 desc->setStyle(this->fontStyle()); in onGetFontDescriptor() 83 this->fontStyle(), in onMakeClone() 110 this->fontStyle(), in onMakeClone() 131 *style = fStyles[index]->fontStyle(); in getStyle() 202 const SkFontStyle& fontStyle) const in onMatchFamilyStyle() 205 return sset->matchStyle(fontStyle); in onMatchFamilyStyle() 217 const SkFontStyle& fontStyle) const in onMatchFaceStyle() 222 return fFamilies[i]->matchStyle(fontStyle); in onMatchFaceStyle()
|
D | SkFontMgr_preview.h | 90 desc->setStyle(this->fontStyle()); in onGetFontDescriptor() 115 this->fontStyle(), in onMakeClone() 169 …return sk_make_sp<SkTypeface_PreviewStream>(std::move(data), this->fontStyle(), this->isFixedPitch… in onMakeClone() 271 *style = fStyles[index]->fontStyle(); in getStyle()
|
/third_party/flutter/skia/modules/skparagraph/include/ |
D | FontCollection.h | 34 sk_sp<SkTypeface> matchTypeface(const char familyName[], SkFontStyle fontStyle); 35 sk_sp<SkTypeface> matchDefaultTypeface(SkFontStyle fontStyle); 36 …sk_sp<SkTypeface> defaultFallback(SkUnichar unicode, SkFontStyle fontStyle, const SkString& locale…
|
D | ParagraphStyle.h | 19 void setFontStyle(SkFontStyle fontStyle) { fFontStyle = fontStyle; } in setFontStyle()
|
/third_party/flutter/skia/src/core/ |
D | SkTypeface.cpp | 134 SkFontStyle fontStyle) { in MakeFromName() argument 135 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName() 136 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName() 137 (fontStyle.weight() == SkFontStyle::kBold_Weight || in MakeFromName() 138 fontStyle.weight() == SkFontStyle::kNormal_Weight)) { in MakeFromName() 140 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName() 142 (fontStyle.weight() == SkFontStyle::kBold_Weight ? SkTypeface::kBold : in MakeFromName() 145 return SkFontMgr::RefDefault()->legacyMakeTypeface(name, fontStyle); in MakeFromName()
|
/third_party/skia/modules/skparagraph/include/ |
D | FontCollection.h | 33 …<sk_sp<SkTypeface>> findTypefaces(const std::vector<SkString>& familyNames, SkFontStyle fontStyle); 35 …sk_sp<SkTypeface> defaultFallback(SkUnichar unicode, SkFontStyle fontStyle, const SkString& locale… 49 sk_sp<SkTypeface> matchTypeface(const SkString& familyName, SkFontStyle fontStyle);
|
/third_party/skia/src/ports/ |
D | SkFontMgr_custom.cpp | 41 desc->setStyle(this->fontStyle()); in onGetFontDescriptor() 84 this->fontStyle(), in onMakeClone() 111 this->fontStyle(), in onMakeClone() 141 *style = fStyles[index]->fontStyle(); in getStyle() 212 const SkFontStyle& fontStyle) const in onMatchFamilyStyle() 215 return sset->matchStyle(fontStyle); in onMatchFamilyStyle()
|
/third_party/skia/src/core/ |
D | SkTypeface.cpp | 135 SkFontStyle fontStyle) { in MakeFromName() argument 136 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName() 137 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName() 138 (fontStyle.weight() == SkFontStyle::kBold_Weight || in MakeFromName() 139 fontStyle.weight() == SkFontStyle::kNormal_Weight)) { in MakeFromName() 141 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName() 143 (fontStyle.weight() == SkFontStyle::kBold_Weight ? SkTypeface::kBold : in MakeFromName() 146 return SkFontMgr::RefDefault()->legacyMakeTypeface(name, fontStyle); in MakeFromName()
|
/third_party/flutter/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 138 const SkFontStyle& fontStyle) const { in onMatchFamilyStyle() 139 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); in onMatchFamilyStyle() 154 const SkFontStyle& fontStyle) const { in onMatchFaceStyle() 157 return this->matchFamilyStyle(familyName.c_str(), fontStyle); in onMatchFaceStyle()
|
/third_party/skia/modules/canvaskit/ |
D | paragraph_bindings.cpp | 59 SimpleFontStyle fontStyle; member 77 SimpleFontStyle fontStyle; member 98 SkFontStyle fs(s.fontStyle.weight, s.fontStyle.width, s.fontStyle.slant); in toStrutStyle() 183 SkFontStyle fs(s.fontStyle.weight, s.fontStyle.width, s.fontStyle.slant); in toTextStyle() 594 .field("fontStyle", &SimpleStrutStyle::fontStyle) in EMSCRIPTEN_BINDINGS() 617 .field("fontStyle", &SimpleTextStyle::fontStyle) in EMSCRIPTEN_BINDINGS()
|
/third_party/flutter/skia/src/ports/skia_ohos/ |
D | SkFontStyleSet_ohos.cpp | 47 *style = typeface->fontStyle(); in getStyle() 65 unsigned int i = typeface->fontStyle().weight() / 100; in getStyle()
|
D | FontConfig_ohos.cpp | 226 const SkFontStyle& fontStyle = typefaceSet[i]->fontStyle(); in matchFontStyle() local 227 uint32_t diff = getFontStyleDifference(pattern, fontStyle); in matchFontStyle() 1121 if (typeface && typeface->fontStyle().weight() == weight) { in buildSubTypefaceSet() 1181 if ((tpSet[j]->fontStyle().weight() > tpSet[j + 1]->fontStyle().weight()) || in sortTypefaceSet() 1182 (tpSet[j]->fontStyle().weight() == tpSet[j + 1]->fontStyle().weight() && in sortTypefaceSet() 1183 tpSet[j]->fontStyle().slant() > tpSet[j + 1]->fontStyle().slant())) { in sortTypefaceSet()
|
/third_party/flutter/flutter/packages/flutter/lib/src/painting/ |
D | text_style.dart | 54 /// style: TextStyle(fontStyle: FontStyle.italic), 273 /// the [FontStyle] class and can be used in the [fontStyle] argument. 405 this.fontStyle, 519 final FontStyle fontStyle; 704 FontStyle fontStyle, 736 fontStyle: fontStyle ?? this.fontStyle, 836 fontStyle: fontStyle, 895 fontStyle: other.fontStyle, 948 fontStyle: t < 0.5 ? null : b.fontStyle, 975 fontStyle: t < 0.5 ? a.fontStyle : null, [all …]
|
D | strut_style.dart | 111 /// * [fontStyle]: the typeface variant to use when calculating the strut 303 this.fontStyle, 341 FontStyle fontStyle, 354 fontStyle = fontStyle ?? textStyle.fontStyle, 456 /// The default fontStyle is [FontStyle.normal]. 457 final FontStyle fontStyle; 508 fontStyle != other.fontStyle || 536 fontStyle: fontStyle ?? other.fontStyle, 553 fontStyle == typedOther.fontStyle && 565 fontStyle, [all …]
|
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/text/ |
D | paragraph.dart | 299 ui.FontStyle fontStyle, 306 _fontStyle = fontStyle, 388 'fontStyle: ${_fontStyle ?? "unspecified"}, ' 411 ui.FontStyle fontStyle, 433 _fontStyle = fontStyle, 542 'fontStyle: ${_fontStyle ?? "unspecified"}, ' 588 /// * `fontStyle`: The typeface variant to use when drawing the letters (e.g., 605 ui.FontStyle fontStyle, 613 _fontStyle = fontStyle, 768 ui.FontStyle fontStyle = _paragraphStyle._fontStyle; [all …]
|
/third_party/flutter/skia/include/ports/ |
D | SkFontMgr_indirect.h | 42 const SkFontStyle& fontStyle) const override; 51 const SkFontStyle& fontStyle) const override;
|
/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | text_style_test.dart | 172 …ecified, decorationThickness: unspecified, fontWeight: FontWeight.w700, fontStyle: unspecified, te… 175 …ecified, decorationThickness: unspecified, fontWeight: FontWeight.w800, fontStyle: unspecified, te… 179 …tAlign.center, textDirection: unspecified, fontWeight: FontWeight.w800, fontStyle: unspecified, ma… 182 …: unspecified, textDirection: unspecified, fontWeight: FontWeight.w700, fontStyle: unspecified, ma… 189 …unspecified, textDirection: TextDirection.ltr, fontWeight: unspecified, fontStyle: unspecified, ma… 193 …unspecified, textDirection: TextDirection.rtl, fontWeight: unspecified, fontStyle: unspecified, ma… 199 …unspecified, decorationThickness: unspecified, fontWeight: unspecified, fontStyle: unspecified, te… 203 …unspecified, decorationThickness: unspecified, fontWeight: unspecified, fontStyle: unspecified, te… 239 …unspecified, decorationThickness: unspecified, fontWeight: unspecified, fontStyle: unspecified, te…
|
/third_party/flutter/engine/flutter/testing/dart/ |
D | paragraph_test.dart | 17 fontStyle: FontStyle.normal, 41 fontStyle: FontStyle.normal,
|