Home
last modified time | relevance | path

Searched refs:fontStyle (Results 1 – 25 of 86) sorted by relevance

1234

/external/skia/docs/examples/
DSkFontMgr_example2.cpp24 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()
DSkFontMgr_example.cpp24 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()
Dtext_rendering.cpp7 SkFontStyle fontStyle; // Default is normal weight, normal width, upright slant. in draw() local
9 sk_sp<SkTypeface> typeface = fontManager->legacyMakeTypeface(fontFamily, fontStyle); in draw()
/external/skia/modules/skparagraph/src/
DFontCollection.cpp70 …>> FontCollection::findTypefaces(const std::vector<SkString>& familyNames, SkFontStyle fontStyle) { in findTypefaces() argument
72 FamilyKey familyKey(familyNames, fontStyle); in findTypefaces()
80 sk_sp<SkTypeface> match = matchTypeface(familyName, fontStyle); in findTypefaces()
87 sk_sp<SkTypeface> match = matchTypeface(fDefaultFamilyName, fontStyle); in findTypefaces()
97 sk_sp<SkTypeface> FontCollection::matchTypeface(const SkString& familyName, SkFontStyle fontStyle) { in matchTypeface() argument
104 sk_sp<SkTypeface> match(set->matchStyle(fontStyle)); in matchTypeface()
114 sk_sp<SkTypeface> FontCollection::defaultFallback(SkUnichar unicode, SkFontStyle fontStyle, const S… in defaultFallback() argument
122 0, fontStyle, bcp47.data(), bcp47.size(), unicode)); in defaultFallback()
/external/skqp/src/ports/
DSkFontMgr_custom.cpp42 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()
DSkFontMgr_custom.h142 const SkFontStyle& fontStyle) const override;
147 const SkFontStyle& fontStyle) const override;
DSkFontMgr_android.cpp90 desc->setStyle(this->fontStyle()); in onGetFontDescriptor()
111 this->fontStyle(), in onMakeClone()
161 this->fontStyle(), in onMakeClone()
254 *style = fStyles[index]->fontStyle(); in getStyle()
/external/skia/src/ports/
DSkFontMgr_custom.cpp41 desc->setStyle(this->fontStyle()); in onGetFontDescriptor()
82 this->fontStyle(), in onMakeClone()
109 this->fontStyle(), in onMakeClone()
130 *style = fStyles[index]->fontStyle(); in getStyle()
201 const SkFontStyle& fontStyle) const in onMatchFamilyStyle()
204 return sset->matchStyle(fontStyle); in onMatchFamilyStyle()
216 const SkFontStyle& fontStyle) const in onMatchFaceStyle()
221 return fFamilies[i]->matchStyle(fontStyle); in onMatchFaceStyle()
DSkFontMgr_custom.h142 const SkFontStyle& fontStyle) const override;
147 const SkFontStyle& fontStyle) const override;
/external/skqp/src/core/
DSkTypeface.cpp136 SkFontStyle fontStyle) { in MakeFromName() argument
137 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName()
138 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName()
139 (fontStyle.weight() == SkFontStyle::kBold_Weight || in MakeFromName()
140 fontStyle.weight() == SkFontStyle::kNormal_Weight)) { in MakeFromName()
142 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName()
144 (fontStyle.weight() == SkFontStyle::kBold_Weight ? SkTypeface::kBold : in MakeFromName()
147 return SkFontMgr::RefDefault()->legacyMakeTypeface(name, fontStyle); in MakeFromName()
/external/skia/modules/skparagraph/include/
DFontCollection.h34 …<sk_sp<SkTypeface>> findTypefaces(const std::vector<SkString>& familyNames, SkFontStyle fontStyle);
36 …sk_sp<SkTypeface> defaultFallback(SkUnichar unicode, SkFontStyle fontStyle, const SkString& locale…
48 sk_sp<SkTypeface> matchTypeface(const SkString& familyName, SkFontStyle fontStyle);
DParagraphStyle.h20 void setFontStyle(SkFontStyle fontStyle) { fFontStyle = fontStyle; } in setFontStyle()
/external/skia/src/core/
DSkTypeface.cpp135 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()
/external/skqp/src/fonts/
DSkFontMgr_indirect.cpp139 const SkFontStyle& fontStyle) const { in onMatchFamilyStyle()
140 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); in onMatchFamilyStyle()
155 const SkFontStyle& fontStyle) const { in onMatchFaceStyle()
158 return this->matchFamilyStyle(familyName.c_str(), fontStyle); in onMatchFaceStyle()
/external/skia/src/fonts/
DSkFontMgr_indirect.cpp138 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()
/external/skia/modules/canvaskit/
Dparagraph_bindings.cpp42 SimpleFontStyle fontStyle; member
85 SkFontStyle fs(s.fontStyle.weight, s.fontStyle.width, s.fontStyle.slant); in toTextStyle()
281 .field("fontStyle", &SimpleTextStyle::fontStyle) in EMSCRIPTEN_BINDINGS()
Dparagraph.js55 function fontStyle(s) { function
85 s['fontStyle'] = fontStyle(s['fontStyle']);
/external/skia/include/ports/
DSkFontMgr_indirect.h42 const SkFontStyle& fontStyle) const override;
51 const SkFontStyle& fontStyle) const override;
/external/skqp/include/ports/
DSkFontMgr_indirect.h42 const SkFontStyle& fontStyle) const override;
51 const SkFontStyle& fontStyle) const override;
/external/skqp/tools/fonts/
DSkTestSVGTypeface.cpp123 desc->setStyle(this->fontStyle()); in onGetFontDescriptor()
353 if (this->fontStyle().weight() >= SkFontStyle::Bold().weight()) { in exportTtxCommon()
356 switch (this->fontStyle().slant()) { in exportTtxCommon()
368 if (this->fontStyle().width() <= SkFontStyle::kCondensed_Width) { in exportTtxCommon()
370 } else if (this->fontStyle().width() >= SkFontStyle::kExpanded_Width) { in exportTtxCommon()
439 out->writeDecAsText(this->fontStyle().weight()); in exportTtxCommon()
442 out->writeDecAsText(this->fontStyle().width()); in exportTtxCommon()
479 if (this->fontStyle().weight() >= SkFontStyle::Bold().weight()) { in exportTtxCommon()
482 switch (this->fontStyle().slant()) { in exportTtxCommon()
484 if (this->fontStyle().weight() < SkFontStyle::Bold().weight()) { in exportTtxCommon()
/external/skia/modules/canvaskit/tests/
Dparagraph.spec.js362 fontStyle: { property
377 fontStyle: { property
434 fontStyle: { property
490 fontStyle: { property
/external/ImageMagick/Magick++/lib/Magick++/
DOptions.h129 void fontStyle(const StyleType style_);
130 StyleType fontStyle(void) const;
/external/skqp/include/core/
DSkTypeface.h48 SkFontStyle fontStyle() const { in fontStyle() function
119 static sk_sp<SkTypeface> MakeFromName(const char familyName[], SkFontStyle fontStyle);
/external/skia/include/core/
DSkTypeface.h48 SkFontStyle fontStyle() const { in fontStyle() function
119 static sk_sp<SkTypeface> MakeFromName(const char familyName[], SkFontStyle fontStyle);
/external/skia/tools/fonts/
DTestSVGTypeface.cpp149 desc->setStyle(this->fontStyle()); in onGetFontDescriptor()
417 if (this->fontStyle().weight() >= SkFontStyle::Bold().weight()) { in exportTtxCommon()
420 switch (this->fontStyle().slant()) { in exportTtxCommon()
430 if (this->fontStyle().width() <= SkFontStyle::kCondensed_Width) { in exportTtxCommon()
432 } else if (this->fontStyle().width() >= SkFontStyle::kExpanded_Width) { in exportTtxCommon()
501 out->writeDecAsText(this->fontStyle().weight()); in exportTtxCommon()
504 out->writeDecAsText(this->fontStyle().width()); in exportTtxCommon()
542 if (this->fontStyle().weight() >= SkFontStyle::Bold().weight()) { in exportTtxCommon()
545 switch (this->fontStyle().slant()) { in exportTtxCommon()
547 if (this->fontStyle().weight() < SkFontStyle::Bold().weight()) { in exportTtxCommon()

1234