Home
last modified time | relevance | path

Searched refs:fTypeface (Results 1 – 25 of 44) sorted by relevance

12

/external/skia/modules/skottie/src/layers/
DTextLayer.cpp212 if (finfo->fTypeface) { in resolveNativeTypefaces()
224 finfo->fTypeface = fResourceProvider->loadTypeface(name.c_str(), finfo->fPath.c_str()); in resolveNativeTypefaces()
228 if (!finfo->fTypeface) { in resolveNativeTypefaces()
229 finfo->fTypeface = fmgr->makeFromData( in resolveNativeTypefaces()
233 if (!finfo->fTypeface) { in resolveNativeTypefaces()
234 finfo->fTypeface.reset(fmgr->matchFamilyStyle(finfo->fFamily.c_str(), in resolveNativeTypefaces()
237 if (!finfo->fTypeface) { in resolveNativeTypefaces()
241 finfo->fTypeface = fmgr->legacyMakeTypeface(nullptr, in resolveNativeTypefaces()
244 has_unresolved |= !finfo->fTypeface; in resolveNativeTypefaces()
306 if (finfo->fTypeface) { in resolveEmbeddedTypefaces()
[all …]
/external/skia/gm/
Dscaledemoji.cpp46 sk_sp<SkTypeface> fTypeface; member
51 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
66 SkFont font(fEmojiFont.fTypeface); in onDraw()
95 sk_sp<SkTypeface> fTypeface; member
100 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
116 font.setTypeface(fEmojiFont.fTypeface); in onDraw()
153 sk_sp<SkTypeface> fTypeface; member
158 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
186 font.setTypeface(fEmojiFont.fTypeface); in onDraw()
Dslug.cpp41 fTypeface = ToolUtils::create_portable_typeface("serif", SkFontStyle()); in onOnceBeforeDraw()
42 SkFont font(fTypeface); in onOnceBeforeDraw()
97 font.setTypeface(fTypeface); in makeBlob()
106 sk_sp<SkTypeface> fTypeface; member in SlugGM
Dcolrv1.cpp61 fTypeface = MakeResourceAsTypeface(kTestFontNameVariable); in onOnceBeforeDraw()
63 fTypeface = MakeResourceAsTypeface(kTestFontName); in onOnceBeforeDraw()
65 fVariationSliders = ToolUtils::VariationSliders(fTypeface.get(), fVariationPosition); in onOnceBeforeDraw()
107 if (!fTypeface) { in makeVariedTypeface()
116 return fTypeface->makeClone(args); in makeVariedTypeface()
125 if (!fTypeface) { in onDraw()
174 sk_sp<SkTypeface> fTypeface; member in skiagm::ColrV1GM
Ddrawglyphs.cpp23 fTypeface = ToolUtils::create_portable_typeface("serif", SkFontStyle()); in onOnceBeforeDraw()
24 fFont = SkFont(fTypeface); in onOnceBeforeDraw()
79 sk_sp<SkTypeface> fTypeface; member in DrawGlyphsGM
Dtextblob.cpp89 fTypeface = ToolUtils::create_portable_typeface("serif", SkFontStyle()); in onOnceBeforeDraw()
90 SkFont font(fTypeface); in onOnceBeforeDraw()
134 font.setTypeface(fTypeface); in makeBlob()
198 sk_sp<SkTypeface> fTypeface; member in TextBlobGM
/external/skia/include/ports/
DSkFontMgr_indirect.h66 SkTypeface* fTypeface; // value: weak ref to typeface member
75 fTypeface = that.fTypeface;
79 that.fTypeface = nullptr;
85 if (fTypeface) { in ~DataEntry()
86 fTypeface->weak_unref(); in ~DataEntry()
/external/skia/src/fonts/
DSkFontMgr_indirect.cpp91 !entry.fTypeface->weak_expired() && entry.fTypeface->try_ref()) in createTypefaceFromFontId()
93 return entry.fTypeface; in createTypefaceFromFontId()
96 !entry.fTypeface->weak_expired() && entry.fTypeface->try_ref()) in createTypefaceFromFontId()
98 dataTypeface.reset(entry.fTypeface); in createTypefaceFromFontId()
103 if (entry.fTypeface->weak_expired()) { in createTypefaceFromFontId()
132 newEntry.fTypeface = typeface.get(); // weak reference passed to new entry. in createTypefaceFromFontId()
/external/skia/tools/viewer/
DChineseFlingSlide.cpp45 sk_sp<SkTypeface> fTypeface; member in ChineseFlingSlide
77 fTypeface = chinese_typeface(); in load()
79 SkFont font(fTypeface, 56); in load()
112 sk_sp<SkTypeface> fTypeface; member in ChineseZoomSlide
184 fTypeface = chinese_typeface(); in load()
186 SkFont font(fTypeface, 11); in load()
DGlyphTransformSlide.cpp27 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in load()
37 SkFont font(fEmojiFont.fTypeface); in draw()
69 sk_sp<SkTypeface> fTypeface; member
DFlutterAnimateSlide.cpp27 fTypeface = SkTypeface::MakeFromFile("/skimages/samplefont.ttf"); in load()
32 SkFont font(fTypeface, 50); in draw()
86 sk_sp<SkTypeface> fTypeface; member in FlutterAnimateView
/external/skia/experimental/sktext/src/
DPaint.h24 …: fTypeface(sk_sp<SkTypeface>(SkFontMgr::RefDefault()->matchFamilyStyle(ff, SkFontStyle::Normal())… in TrivialFontChain()
30 return fTypeface;
34 sk_sp<SkTypeface> getTypeface() const { return fTypeface; } in getTypeface()
35 bool empty() const { return fTypeface == nullptr; } in empty()
38 sk_sp<SkTypeface> fTypeface;
/external/skia/include/core/
DSkFont.h200 SkTypeface* getTypeface() const {return fTypeface.get(); } in getTypeface()
234 sk_sp<SkTypeface> refTypeface() const { return fTypeface; } in refTypeface()
249 void setTypeface(sk_sp<SkTypeface> tf) { fTypeface = tf; } in setTypeface()
521 sk_sp<SkTypeface> fTypeface; variable
529 static_assert(::sk_is_trivially_relocatable<decltype(fTypeface)>::value);
/external/skia/src/core/
DSkFont.cpp37 : fTypeface(std::move(face)) in SkFont()
53 return fTypeface.get() == b.fTypeface.get() && in operator ==()
63 SkDebugf("typeface %p\n", fTypeface.get()); in dump()
310 return fTypeface ? fTypeface.get() : SkTypeface::GetDefaultTypeface(); in getTypefaceOrDefault()
314 return fTypeface ? fTypeface : SkTypeface::MakeDefault(); in refTypefaceOrDefault()
DSkFont_serial.cpp63 if (font.fTypeface) { in Flatten()
78 buffer.writeTypeface(font.fTypeface.get()); in Flatten()
97 font->fTypeface = buffer.readTypeface(); in Unflatten()
DSkStrikeSpec.h99 return fTypeface->createScalerContext(effects, fAutoDescriptor.getDesc()); in createScalerContext()
103 const SkTypeface& typeface() const { return *fTypeface; } in typeface()
118 sk_sp<SkTypeface> fTypeface; variable
/external/skia/tools/fonts/
DTestFontMgr.cpp29 : fTypeface(std::move(typeface)), fStyle(style), fStyleName(styleName) {} in TypefaceEntry()
30 sk_sp<SkTypeface> fTypeface; member
47 return SkRef(fTypefaces[index].fTypeface.get()); in createTypeface()
77 fDefaultTypeface = fDefaultFamily->fTypefaces[0].fTypeface; in FontMgr()
/external/skia/src/pdf/
DSkPDFFont.h39 SkTypeface* typeface() const { return fTypeface.get(); } in typeface()
120 sk_sp<SkTypeface> refTypeface() const { return fTypeface; } in refTypeface()
123 sk_sp<SkTypeface> fTypeface;
/external/skia/modules/skottie/gm/
DExternalProperties.cpp30 : fTypeface(SkTypeface::MakeFromData(GetResourceAsData(kWebFontResource))) {} in FakeWebFontProvider()
33 return fTypeface; in loadTypeface()
37 sk_sp<SkTypeface> fTypeface; member in __anon6473d5cb0111::FakeWebFontProvider
DSkottieGM.cpp30 : fTypeface(SkTypeface::MakeFromData(GetResourceAsData(kWebFontResource))) {} in FakeWebFontProvider()
33 return fTypeface; in loadTypeface()
37 sk_sp<SkTypeface> fTypeface; member in __anon5b870ed20111::FakeWebFontProvider
/external/skia/bench/
DTypefaceBench.cpp236 fTypeface = SkTypeface::MakeFromName("monospace", SkFontStyle()); in onDelayedSetup()
240 SkFont font(fTypeface); in onDraw()
295 sk_sp<SkTypeface> fTypeface; member in UtfToGlyph
/external/skia/modules/skottie/src/text/
DFont.h64 const sk_sp<SkTypeface>& typeface() const { return fTypeface; } in typeface()
72 const sk_sp<SkTypeface> fTypeface; variable
/external/skia/modules/sksg/include/
DSkSGText.h33 SG_ATTRIBUTE(Typeface, sk_sp<SkTypeface> , fTypeface)
58 sk_sp<SkTypeface> fTypeface; variable
/external/skia/modules/sksg/src/
DSkSGText.cpp23 : fTypeface(std::move(tf)) in Text()
49 font.setTypeface(fTypeface); in onRevalidate()
/external/skia/modules/skparagraph/include/
DTextStyle.h270 SkTypeface* getTypeface() const { return fTypeface.get(); } in getTypeface()
271 sk_sp<SkTypeface> refTypeface() const { return fTypeface; } in refTypeface()
272 void setTypeface(sk_sp<SkTypeface> typeface) { fTypeface = std::move(typeface); } in setTypeface()
323 sk_sp<SkTypeface> fTypeface; variable

12