Home
last modified time | relevance | path

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

123

/external/skqp/include/atlastext/
DSkAtlasTextFont.h22 SkTypeface* typeface() const { return fTypeface.get(); } in typeface()
24 sk_sp<SkTypeface> refTypeface() const { return fTypeface; } in refTypeface()
28 SkFont makeFont() const { return SkFont(fTypeface, fSize); } in makeFont()
32 : fTypeface(std::move(typeface)), fSize(size) {} in SkAtlasTextFont()
34 sk_sp<SkTypeface> fTypeface; variable
/external/skia/gm/
Dscaledemoji.cpp45 sk_sp<SkTypeface> fTypeface; member
50 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
65 SkFont font(fEmojiFont.fTypeface); in onDraw()
94 sk_sp<SkTypeface> fTypeface; member
99 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
115 font.setTypeface(fEmojiFont.fTypeface); in onDraw()
152 sk_sp<SkTypeface> fTypeface; member
157 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
175 font.setTypeface(fEmojiFont.fTypeface); in onDraw()
Dcolrv1.cpp33 sk_sp<SkTypeface> fTypeface; member
40 fEmojiFont.fTypeface = in onOnceBeforeDraw()
61 if (!fEmojiFont.fTypeface) { in onDraw()
69 SkFont font(fEmojiFont.fTypeface); in onDraw()
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
/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/skqp/include/ports/
DSkFontMgr_indirect.h67 SkTypeface* fTypeface; // value: weak ref to typeface member
74 , fTypeface(that.fTypeface) in DataEntry()
78 that.fTypeface = nullptr; in DataEntry()
82 if (fTypeface) { in ~DataEntry()
83 fTypeface->weak_unref(); in ~DataEntry()
/external/skia/modules/skottie/src/layers/
DTextLayer.cpp259 if (finfo->fTypeface) { in resolveNativeTypefaces()
271 finfo->fTypeface = fResourceProvider->loadTypeface(name.c_str(), finfo->fPath.c_str()); in resolveNativeTypefaces()
275 if (!finfo->fTypeface) { in resolveNativeTypefaces()
276 finfo->fTypeface = fmgr->makeFromData( in resolveNativeTypefaces()
280 if (!finfo->fTypeface) { in resolveNativeTypefaces()
281 finfo->fTypeface.reset(fmgr->matchFamilyStyle(finfo->fFamily.c_str(), in resolveNativeTypefaces()
284 if (!finfo->fTypeface) { in resolveNativeTypefaces()
288 finfo->fTypeface = fmgr->legacyMakeTypeface(nullptr, in resolveNativeTypefaces()
291 has_unresolved |= !finfo->fTypeface; in resolveNativeTypefaces()
388 if (finfo->fTypeface) { in resolveEmbeddedTypefaces()
[all …]
/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/skqp/src/fonts/
DSkFontMgr_indirect.cpp92 !entry.fTypeface->weak_expired() && entry.fTypeface->try_ref()) in createTypefaceFromFontId()
94 return entry.fTypeface; in createTypefaceFromFontId()
97 !entry.fTypeface->weak_expired() && entry.fTypeface->try_ref()) in createTypefaceFromFontId()
99 dataTypeface.reset(entry.fTypeface); in createTypefaceFromFontId()
104 if (entry.fTypeface->weak_expired()) { in createTypefaceFromFontId()
133 newEntry.fTypeface = typeface.get(); // weak reference passed to new entry. in createTypefaceFromFontId()
/external/skqp/gm/
Dscaledemoji.cpp38 sk_sp<SkTypeface> fTypeface; member
43 fEmojiFont.fTypeface = sk_tool_utils::emoji_typeface(); in onOnceBeforeDraw()
60 SkFont font(fEmojiFont.fTypeface); in onDraw()
90 sk_sp<SkTypeface> fTypeface; member
95 fEmojiFont.fTypeface = sk_tool_utils::emoji_typeface(); in onOnceBeforeDraw()
113 font.setTypeface(fEmojiFont.fTypeface); in onDraw()
/external/skia/samplecode/
DSampleChineseFling.cpp44 sk_sp<SkTypeface> fTypeface; member in ChineseFlingView
75 fTypeface = chinese_typeface(); in onOnceBeforeDraw()
77 SkFont font(fTypeface, 56); in onOnceBeforeDraw()
110 sk_sp<SkTypeface> fTypeface; member in ChineseZoomView
184 fTypeface = chinese_typeface(); in onOnceBeforeDraw()
186 SkFont font(fTypeface, 11); in onOnceBeforeDraw()
DSampleGlyphTransform.cpp29 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
38 SkFont font(fEmojiFont.fTypeface); in onDrawContent()
70 sk_sp<SkTypeface> fTypeface; member
DSampleFlutterAnimate.cpp27 fTypeface = SkTypeface::MakeFromFile("/skimages/samplefont.ttf"); in onOnceBeforeDraw()
34 SkFont font(fTypeface, 50); in onDrawContent()
88 sk_sp<SkTypeface> fTypeface; member in FlutterAnimateView
/external/skqp/samplecode/
DSampleChineseFling.cpp85 fTypeface = chinese_typeface(); in init()
87 SkFont font(fTypeface, 56); in init()
112 sk_sp<SkTypeface> fTypeface; member in ChineseFlingView
202 fTypeface = chinese_typeface(); in init()
204 SkFont font(fTypeface, 11); in init()
239 sk_sp<SkTypeface> fTypeface; member in ChineseZoomView
DSampleGlyphTransform.cpp29 fEmojiFont.fTypeface = sk_tool_utils::emoji_typeface(); in onOnceBeforeDraw()
44 SkFont font(fEmojiFont.fTypeface); in onDrawContent()
76 sk_sp<SkTypeface> fTypeface; member
DSampleFlutterAnimate.cpp32 fTypeface = SkTypeface::MakeFromFile("/skimages/samplefont.ttf"); in onOnceBeforeDraw()
46 SkFont font(fTypeface, 50); in onDrawContent()
101 sk_sp<SkTypeface> fTypeface; member in FlutterAnimateView
/external/skqp/modules/skottie/src/
DSkottieValue.h74 sk_sp<SkTypeface> fTypeface; member
85 return fTypeface == other.fTypeface
/external/skqp/src/pdf/
DSkPDFFont.h34 SkTypeface* typeface() const { return fTypeface.get(); } in typeface()
112 sk_sp<SkTypeface> refTypeface() const { return fTypeface; } in refTypeface()
115 sk_sp<SkTypeface> fTypeface;
/external/skqp/modules/skshaper/src/
DSkShaper_primitive.cpp15 sk_sp<SkTypeface> fTypeface; member
19 fImpl->fTypeface = tf ? std::move(tf) : SkTypeface::MakeDefault(); in SkShaper()
45 font.setTypeface(fImpl->fTypeface); in shape()
DSkShaper_harfbuzz.cpp285 , fHBFont(hbFace), fTypeface(std::move(typeface)) in FontRunIterator()
287 , fCurrentHBFont(fHBFont), fCurrentTypeface(fTypeface.get()) in FontRunIterator()
293 if (fTypeface->charsToGlyphs(&u, SkTypeface::kUTF32_Encoding, nullptr, 1)) { in consume()
294 fCurrentTypeface = fTypeface.get(); in consume()
305 nullptr, fTypeface->fontStyle(), nullptr, 0, u)); in consume()
316 if (fCurrentTypeface != fTypeface.get() && in consume()
317 fTypeface->charsToGlyphs(&u, SkTypeface::kUTF32_Encoding, nullptr, 1)) in consume()
347 sk_sp<SkTypeface> fTypeface; member in __anonacb933920111::FontRunIterator
506 sk_sp<SkTypeface> fTypeface; member
514 fImpl->fTypeface = tf ? std::move(tf) : SkTypeface::MakeDefault(); in SkShaper()
[all …]
/external/skqp/src/core/
DSkFont.cpp32 : fTypeface(std::move(face)) in SkFont()
48 return fTypeface.get() == b.fTypeface.get() && in operator ==()
58 SkDebugf("typeface %p\n", fTypeface.get()); in dump()
407 return fTypeface ? fTypeface.get() : SkTypeface::GetDefaultTypeface(); in getTypefaceOrDefault()
411 return fTypeface ? fTypeface : SkTypeface::MakeDefault(); in refTypefaceOrDefault()
532 if (font.fTypeface) { in Flatten()
547 buffer.writeTypeface(font.fTypeface.get()); in Flatten()
566 font->fTypeface = buffer.readTypeface(); in Unflatten()
/external/skia/src/pdf/
DSkPDFFont.h40 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/src/core/
DSkFont.cpp34 : fTypeface(std::move(face)) in SkFont()
50 return fTypeface.get() == b.fTypeface.get() && in operator ==()
60 SkDebugf("typeface %p\n", fTypeface.get()); in dump()
365 return fTypeface ? fTypeface.get() : SkTypeface::GetDefaultTypeface(); in getTypefaceOrDefault()
369 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()
/external/skia/modules/skottie/gm/
DExternalProperties.cpp29 : fTypeface(SkTypeface::MakeFromData(GetResourceAsData(kWebFontResource))) {} in FakeWebFontProvider()
32 return fTypeface; in loadTypeface()
36 sk_sp<SkTypeface> fTypeface; member in __anon866801ed0111::FakeWebFontProvider

123