Home
last modified time | relevance | path

Searched refs:fTypefaces (Results 1 – 22 of 22) sorted by relevance

/third_party/skia/src/core/
DSkTypefaceCache.cpp17 if (fTypefaces.count() >= TYPEFACE_CACHE_LIMIT) { in add()
21 fTypefaces.emplace_back(std::move(face)); in add()
25 for (const sk_sp<SkTypeface>& typeface : fTypefaces) { in findByProcAndRef()
34 int count = fTypefaces.count(); in purge()
37 if (fTypefaces[i]->unique()) { in purge()
38 fTypefaces.removeShuffle(i); in purge()
50 this->purge(fTypefaces.count()); in purgeAll()
DSkTypefaceCache.h71 SkTArray<sk_sp<SkTypeface>> fTypefaces; variable
/third_party/flutter/skia/src/core/
DSkTypefaceCache.cpp17 if (fTypefaces.count() >= TYPEFACE_CACHE_LIMIT) { in add()
21 fTypefaces.emplace_back(std::move(face)); in add()
25 for (const sk_sp<SkTypeface>& typeface : fTypefaces) { in findByProcAndRef()
34 int count = fTypefaces.count(); in purge()
37 if (fTypefaces[i]->unique()) { in purge()
38 fTypefaces.removeShuffle(i); in purge()
50 this->purge(fTypefaces.count()); in purgeAll()
DSkTypefaceCache.h71 SkTArray<sk_sp<SkTypeface>> fTypefaces; variable
/third_party/flutter/skia/gm/
Dfontcache.cpp62 fTypefaces[0] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
63 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
64 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
65 fTypefaces[3] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
66 fTypefaces[4] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
67 fTypefaces[5] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
109 for (const auto& typeface : fTypefaces) { in drawText()
132 sk_sp<SkTypeface> fTypefaces[6]; member in FontCacheGM
Dvariedtext.cpp66 static_assert(4 == SK_ARRAY_COUNT(fTypefaces), "typeface_cnt"); in onOnceBeforeDraw()
67 fTypefaces[0] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle()); in onOnceBeforeDraw()
68 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
69 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle()); in onOnceBeforeDraw()
70 fTypefaces[3] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
90 fTypefaceIndices[i] = random.nextULessThan(SK_ARRAY_COUNT(fTypefaces)); in onOnceBeforeDraw()
94 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onOnceBeforeDraw()
123 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onDraw()
154 sk_sp<SkTypeface> fTypefaces[4]; member in VariedTextGM
Datlastext.cpp98 fTypefaces[0] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
99 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
100 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
101 fTypefaces[3] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
102 fTypefaces[4] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
103 fTypefaces[5] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
141 for (const auto& typeface : fTypefaces) { in drawText()
185 sk_sp<SkTypeface> fTypefaces[6]; member in AtlasTextGM
/third_party/skia/gm/
Dfontcache.cpp60 fTypefaces[0] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
61 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
62 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
63 fTypefaces[3] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
64 fTypefaces[4] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
65 fTypefaces[5] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
107 for (const auto& typeface : fTypefaces) { in drawText()
130 sk_sp<SkTypeface> fTypefaces[6]; member in FontCacheGM
Dvariedtext.cpp66 static_assert(4 == SK_ARRAY_COUNT(fTypefaces), "typeface_cnt"); in onOnceBeforeDraw()
67 fTypefaces[0] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle()); in onOnceBeforeDraw()
68 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
69 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle()); in onOnceBeforeDraw()
70 fTypefaces[3] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
90 fTypefaceIndices[i] = random.nextULessThan(SK_ARRAY_COUNT(fTypefaces)); in onOnceBeforeDraw()
94 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onOnceBeforeDraw()
121 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onDraw()
152 sk_sp<SkTypeface> fTypefaces[4]; member in VariedTextGM
/third_party/skia/tools/fonts/
DTestFontMgr.cpp38 int count() override { return fTypefaces.size(); } in count()
42 *style = fTypefaces[index].fStyle; in getStyle()
45 *name = fTypefaces[index].fStyleName; in getStyle()
50 return SkRef(fTypefaces[index].fTypeface.get()); in createTypeface()
59 std::vector<TypefaceEntry> fTypefaces; member in __anonb19fd5a00111::FontStyleSet
77 family->fTypefaces.emplace_back( in FontMgr()
88 fFamilies.back()->fTypefaces.emplace_back( in FontMgr()
100 fFamilies.back()->fTypefaces.emplace_back( in FontMgr()
104 fFamilies.back()->fTypefaces.emplace_back( in FontMgr()
/third_party/flutter/skia/tools/fonts/
DTestFontMgr.cpp38 int count() override { return fTypefaces.size(); } in count()
42 *style = fTypefaces[index].fStyle; in getStyle()
45 *name = fTypefaces[index].fStyleName; in getStyle()
50 return SkRef(fTypefaces[index].fTypeface.get()); in createTypeface()
59 std::vector<TypefaceEntry> fTypefaces; member in __anoncf8603350111::FontStyleSet
77 family->fTypefaces.emplace_back( in FontMgr()
88 fFamilies.back()->fTypefaces.emplace_back( in FontMgr()
100 fFamilies.back()->fTypefaces.emplace_back( in FontMgr()
104 fFamilies.back()->fTypefaces.emplace_back( in FontMgr()
/third_party/skia/experimental/sktext/src/
DPaint.h51 fTypefaces.emplace_back(typeface); in MultipleFontChain()
55 size_t count() const override { return fTypefaces.size(); } in count()
57 SkASSERT(index < fTypefaces.size());
58 return fTypefaces[index];
62 bool empty() const { return fTypefaces.empty(); } in empty()
65 std::vector<sk_sp<SkTypeface>> fTypefaces;
/third_party/skia/modules/skparagraph/src/
DFontCollection.cpp80 auto found = fTypefaces.find(familyKey); in findTypefaces()
114 fTypefaces.set(familyKey, typefaces); in findTypefaces()
171 fTypefaces.reset(); in clearCaches()
/third_party/skia/src/ports/
DSkFontMgr_fuchsia.cpp295 if (fTypefaces.empty()) fTypefaces.resize(fStyles.size()); in createTypeface()
297 if (!fTypefaces[index]) { in createTypeface()
298 fTypefaces[index] = fFontManager->FetchTypeface( in createTypeface()
304 return SkSafeRef(fTypefaces[index].get()); in createTypeface()
313 std::vector<sk_sp<SkTypeface>> fTypefaces; member in SkFontStyleSet_Fuchsia
/third_party/flutter/skia/src/ports/
DSkFontMgr_fuchsia.cpp296 if (fTypefaces.empty()) fTypefaces.resize(fStyles.size()); in createTypeface()
298 if (!fTypefaces[index]) { in createTypeface()
299 fTypefaces[index] = fFontManager->FetchTypeface( in createTypeface()
305 return SkSafeRef(fTypefaces[index].get()); in createTypeface()
314 std::vector<sk_sp<SkTypeface>> fTypefaces; member in SkFontStyleSet_Fuchsia
/third_party/flutter/skia/modules/skparagraph/src/
DFontCollection.cpp71 auto found = fTypefaces.find(familyKey); in matchTypeface()
100 auto found = fTypefaces.find(familyKey); in matchDefaultTypeface()
/third_party/flutter/skia/modules/skparagraph/include/
DFontCollection.h64 SkTHashMap<FamilyKey, sk_sp<SkTypeface>, FamilyKey::Hasher> fTypefaces; variable
/third_party/skia/modules/skparagraph/include/
DFontCollection.h68 SkTHashMap<FamilyKey, std::vector<sk_sp<SkTypeface>>, FamilyKey::Hasher> fTypefaces; variable
/third_party/flutter/skia/src/xps/
DSkXPSDevice.cpp428 if (!this->fTypefaces.empty()) { in endPortfolio()
429 SkXPSDevice::TypefaceUse* current = &this->fTypefaces.front(); in endPortfolio()
430 const TypefaceUse* last = &this->fTypefaces.back(); in endPortfolio()
1751 if (!this->fTypefaces.empty()) {
1752 TypefaceUse* current = &this->fTypefaces.front();
1753 const TypefaceUse* last = &this->fTypefaces.back();
1798 TypefaceUse& newTypefaceUse = this->fTypefaces.push_back();
DSkXPSDevice.h131 SkTArray<TypefaceUse, true> fTypefaces; variable
/third_party/skia/src/xps/
DSkXPSDevice.h128 SkTArray<TypefaceUse, true> fTypefaces; variable
DSkXPSDevice.cpp122 , fCurrentPage(0), fTopTypefaces(&fTypefaces) {} in SkXPSDevice()