Home
last modified time | relevance | path

Searched refs:fontStyle (Results 1 - 25 of 62) sorted by relevance

123

/third_party/skia/modules/skparagraph/src/
H A DFontCollection.cpp156 std::vector<sk_sp<SkTypeface>> FontCollection::findTypefaces(const std::vector<SkString>& familyNames, SkFontStyle fontStyle) { argument
159 const std::vector<SkString>& familyNames, RSFontStyle fontStyle)
162 return findTypefaces(familyNames, fontStyle, std::nullopt);
167 SkFontStyle fontStyle, const std::optional<FontArguments>& fontArgs) {
169 FamilyKey familyKey(familyNames, fontStyle, fontArgs);
180 sk_sp<SkTypeface> match = matchTypeface(familyName, fontStyle);
192 match = matchTypeface(familyName, fontStyle);
200 match = manager->legacyMakeTypeface(nullptr, fontStyle);
217 RSFontStyle fontStyle, const std::optional<FontArguments>& fontArgs)
220 FamilyKey familyKey(familyNames, fontStyle, fontArg
166 findTypefaces(const std::vector<SkString>& familyNames, SkFontStyle fontStyle, const std::optional<FontArguments>& fontArgs) global() argument
216 findTypefaces(const std::vector<SkString>& familyNames, RSFontStyle fontStyle, const std::optional<FontArguments>& fontArgs) global() argument
270 matchTypeface(const SkString& familyName, SkFontStyle fontStyle) global() argument
286 matchTypeface(const SkString& familyName, RSFontStyle fontStyle) global() argument
306 defaultFallback(SkUnichar unicode, SkFontStyle fontStyle, const SkString& locale) global() argument
[all...]
H A DOneLineShaper.h132 FontKey(SkUnichar unicode, SkFontStyle fontStyle, SkString locale) in FontKey()
133 : fUnicode(unicode), fFontStyle(fontStyle), fLocale(locale) { } in FontKey()
135 FontKey(SkUnichar unicode, RSFontStyle fontStyle, SkString locale) in FontKey()
136 : fUnicode(unicode), fFontStyle(fontStyle), fLocale(locale) { } in FontKey()
/third_party/skia/docs/examples/
H A DSkFontMgr_example2.cpp24 SkFontStyle fontStyle; in REG_FIDDLE() local
26 styleSet->getStyle(j, &fontStyle, &style); in REG_FIDDLE()
30 familyName.c_str(), fontStyle.weight(), fontStyle.width(), in REG_FIDDLE()
31 tostr(fontStyle.slant()), textScale); in REG_FIDDLE()
32 SkFont font(mgr->legacyMakeTypeface(familyName.c_str(), fontStyle), textScale); in REG_FIDDLE()
H A DSkFontMgr_example.cpp24 SkFontStyle fontStyle; in REG_FIDDLE() local
26 styleSet->getStyle(j, &fontStyle, &style); in REG_FIDDLE()
29 familyName.c_str(), fontStyle.weight(), fontStyle.width(), in REG_FIDDLE()
30 tostr(fontStyle.slant())); in REG_FIDDLE()
H A Dtext_rendering.cpp7 SkFontStyle fontStyle; // Default is normal weight, normal width, upright slant. in REG_FIDDLE() local
9 sk_sp<SkTypeface> typeface = fontManager->legacyMakeTypeface(fontFamily, fontStyle); in REG_FIDDLE()
/third_party/skia/modules/skparagraph/include/
H A DFontCollection.h44 std::vector<sk_sp<SkTypeface>> findTypefaces(const std::vector<SkString>& familyNames, SkFontStyle fontStyle);
45 std::vector<sk_sp<SkTypeface>> findTypefaces(const std::vector<SkString>& familyNames, SkFontStyle fontStyle, const std::optional<FontArguments>& fontArgs);
47 sk_sp<SkTypeface> defaultFallback(SkUnichar unicode, SkFontStyle fontStyle, const SkString& locale);
64 const std::vector<SkString>& familyNames, RSFontStyle fontStyle);
66 const std::vector<SkString>& familyNames, RSFontStyle fontStyle, const std::optional<FontArguments>& fontArgs);
68 std::shared_ptr<RSTypeface> defaultFallback(SkUnichar unicode, RSFontStyle fontStyle, const SkString& locale);
115 sk_sp<SkTypeface> matchTypeface(const SkString& familyName, SkFontStyle fontStyle);
119 std::shared_ptr<RSTypeface> matchTypeface(const SkString& familyName, RSFontStyle fontStyle);
H A DParagraphStyle.h52 void setFontStyle(SkFontStyle fontStyle) { fFontStyle = fontStyle; } in setFontStyle()
55 void setFontStyle(RSFontStyle fontStyle) { fFontStyle = fontStyle; } in setFontStyle()
H A DTextStyle.h261 void setFontStyle(SkFontStyle fontStyle) { fFontStyle = fontStyle; } in setFontStyle() argument
264 void setFontStyle(RSFontStyle fontStyle) { fFontStyle = fontStyle; } in setFontStyle() argument
/third_party/skia/experimental/sktext/src/
H A DPaint.h23 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,
H A DPaint.cpp24 const SkString& fontFamily, SkScalar fontSize, SkFontStyle fontStyle, SkScalar x, SkScalar y) { in drawText()
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, SkScalar y) { in drawText()
36 sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>(fontFamily.c_str(), fontSize, fontStyle); in drawText()
21 drawText(std::u16string text, SkCanvas* canvas, TextDirection textDirection, TextAlign textAlign, SkPaint foreground, SkPaint background, const SkString& fontFamily, SkScalar fontSize, SkFontStyle fontStyle, SkScalar x, SkScalar y) drawText() argument
30 drawText(std::u16string text, SkCanvas* canvas, TextDirection textDirection, TextAlign textAlign, SkPaint foreground, SkPaint background, const SkString& fontFamily, SkScalar fontSize, SkFontStyle fontStyle, SkSize reqSize, SkScalar x, SkScalar y) drawText() argument
/third_party/skia/src/ports/
H A DSkFontMgr_custom.cpp41 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
215 return sset->matchStyle(fontStyle);
H A DSkFontMgr_preview.h89 desc->setStyle(this->fontStyle());
114 this->fontStyle(),
168 return sk_make_sp<SkTypeface_PreviewStream>(std::move(data), this->fontStyle(), this->isFixedPitch(), fFamilyName);
270 *style = fStyles[index]->fontStyle();
H A DSkFontMgr_android.cpp89 desc->setStyle(this->fontStyle());
110 this->fontStyle(),
159 this->fontStyle(),
252 *style = fStyles[index]->fontStyle();
/third_party/skia/src/core/
H A DSkTypeface.cpp187 SkFontStyle fontStyle) { in MakeFromName()
188 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName()
189 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName()
190 (fontStyle.weight() == SkFontStyle::kBold_Weight || in MakeFromName()
191 fontStyle.weight() == SkFontStyle::kNormal_Weight)) { in MakeFromName()
193 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName()
195 (fontStyle.weight() == SkFontStyle::kBold_Weight ? SkTypeface::kBold : in MakeFromName()
198 return SkFontMgr::RefDefault()->legacyMakeTypeface(name, fontStyle); in MakeFromName()
186 MakeFromName(const char name[], SkFontStyle fontStyle) MakeFromName() argument
H A DSkTypefaceCache.cpp91 SkFontStyle s = face->fontStyle(); in DumpProc()
/third_party/skia/modules/canvaskit/
H A Dparagraph_bindings.cpp59 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()
[all...]
/third_party/skia/src/ports/skia_ohos/
H A DSkFontStyleSet_ohos.cpp47 *style = typeface->fontStyle(); in getStyle()
65 unsigned int i = typeface->fontStyle().weight() / 100; in getStyle()
H A DFontConfig_ohos.cpp268 const SkFontStyle& fontStyle = typefaceSet[i]->fontStyle(); in matchFontStyle() local
269 uint32_t diff = getFontStyleDifference(pattern, fontStyle); in matchFontStyle()
1182 if (typeface && typeface->fontStyle().weight() == weight) { in buildSubTypefaceSet()
1242 if ((tpSet[j]->fontStyle().weight() > tpSet[j + 1]->fontStyle().weight()) || in sortTypefaceSet()
1243 (tpSet[j]->fontStyle().weight() == tpSet[j + 1]->fontStyle().weight() && in sortTypefaceSet()
1244 tpSet[j]->fontStyle().slant() > tpSet[j + 1]->fontStyle() in sortTypefaceSet()
[all...]
H A DSkTypeface_ohos.cpp86 descriptor->setStyle(this->fontStyle()); in onGetFontDescriptor()
/third_party/skia/src/fonts/
H A DSkFontMgr_indirect.cpp138 const SkFontStyle& fontStyle) const { in onMatchFamilyStyle()
139 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); in onMatchFamilyStyle()
/third_party/skia/include/core/
H A DSkTypeface.h52 SkFontStyle fontStyle() const { in fontStyle() function in SkTypeface
115 requested familyName and fontStyle. This method allows extended font
119 @param fontStyle The style of the typeface.
123 static sk_sp<SkTypeface> MakeFromName(const char familyName[], SkFontStyle fontStyle);
/third_party/skia/experimental/sktext/include/
H A DTypes.h210 ResolvedFontBlock(TextRange textRange, sk_sp<SkTypeface> typeface, SkScalar size, SkFontStyle fontStyle) in ResolvedFontBlock()
214 , style(fontStyle) { } in ResolvedFontBlock()
/third_party/skia/tools/fonts/
H A DTestSVGTypeface.cpp150 desc->setStyle(this->fontStyle()); in onGetFontDescriptor()
420 if (this->fontStyle().weight() >= SkFontStyle::Bold().weight()) { in exportTtxCommon()
423 switch (this->fontStyle().slant()) { in exportTtxCommon()
433 if (this->fontStyle().width() <= SkFontStyle::kCondensed_Width) { in exportTtxCommon()
435 } else if (this->fontStyle().width() >= SkFontStyle::kExpanded_Width) { in exportTtxCommon()
504 out->writeDecAsText(this->fontStyle().weight()); in exportTtxCommon()
507 out->writeDecAsText(this->fontStyle().width()); in exportTtxCommon()
545 if (this->fontStyle().weight() >= SkFontStyle::Bold().weight()) { in exportTtxCommon()
548 switch (this->fontStyle().slant()) { in exportTtxCommon()
550 if (this->fontStyle() in exportTtxCommon()
[all...]
/third_party/skia/gm/
H A Dfontmgr.cpp46 const SkFontStyle& fontStyle) { in drawCharacter()
51 sk_sp<SkTypeface> typeface(fm->matchFamilyStyleCharacter(fontName, fontStyle, in drawCharacter()
65 font.setTypeface(fm->legacyMakeTypeface(familyName.c_str(), typeface->fontStyle())); in drawCharacter()
43 drawCharacter(SkCanvas* canvas, uint32_t character, SkScalar x, SkScalar y, const SkFont& origFont, SkFontMgr* fm, const char* fontName, const char* bcp47[], int bcp47Count, const SkFontStyle& fontStyle) drawCharacter() argument
/third_party/skia/tests/
H A DFontMgrTest.cpp128 TestTypeface(const SkFontStyle& fontStyle) : SkTypeface(fontStyle, false){} in DEF_TEST() argument
732 REPORTER_ASSERT(reporter, typeface->fontStyle() == testCase.expectedResult); in DEF_TEST()

Completed in 18 milliseconds

123