Home
last modified time | relevance | path

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

/external/skqp/src/core/
DSkTypefaceCache.cpp17 if (fTypefaces.count() >= TYPEFACE_CACHE_LIMIT) { in add()
21 fTypefaces.emplace_back(SkRef(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.h73 SkTArray<sk_sp<SkTypeface>> fTypefaces; variable
/external/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
/external/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()
121 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onDraw()
152 sk_sp<SkTypeface> fTypefaces[4]; member in VariedTextGM
/external/skqp/gm/
Dfontcache.cpp54 fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
55 fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif",SkFontStyle::Italic()); in onOnceBeforeDraw()
56 fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
57 fTypefaces[3] = in onOnceBeforeDraw()
59 fTypefaces[4] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
60 fTypefaces[5] = sk_tool_utils::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.cpp55 static_assert(4 == SK_ARRAY_COUNT(fTypefaces), "typeface_cnt"); in onOnceBeforeDraw()
56 fTypefaces[0] = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle()); in onOnceBeforeDraw()
57 fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
58 fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle()); in onOnceBeforeDraw()
59 fTypefaces[3] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
79 fTypefaceIndices[i] = random.nextULessThan(SK_ARRAY_COUNT(fTypefaces)); in onOnceBeforeDraw()
83 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onOnceBeforeDraw()
112 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onDraw()
143 sk_sp<SkTypeface> fTypefaces[4]; member in VariedTextGM
Datlastext.cpp79 fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
80 fTypefaces[1] = in onOnceBeforeDraw()
82 fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
83 fTypefaces[3] = in onOnceBeforeDraw()
85 fTypefaces[4] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
86 fTypefaces[5] = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
116 for (const auto& typeface : fTypefaces) { in drawText()
160 sk_sp<SkTypeface> fTypefaces[6]; member in AtlasTextGM
/external/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 __anon6d6f9b760111::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()
/external/skqp/tools/fonts/
DSkTestFontMgr.cpp40 int count() override { return fTypefaces.size(); } in count()
43 if (style) { *style = fTypefaces[index].fStyle; } in getStyle()
44 if (name) { *name = fTypefaces[index].fStyleName; } in getStyle()
48 return SkRef(fTypefaces[index].fTypeface.get()); in createTypeface()
57 std::vector<TypefaceEntry> fTypefaces; member in __anon911b242b0111::FontStyleSet
77 … family->fTypefaces.emplace_back(std::move(typeface), sub.fStyle, sub.fStyleName); in FontMgr()
88 … fFamilies.back()->fTypefaces.emplace_back(std::move(typeface), sub.fStyle, sub.fStyleName); in FontMgr()
96 …fFamilies.back()->fTypefaces.emplace_back(SkTestSVGTypeface::Default(), SkFontStyle::Normal(), "No… in FontMgr()
/external/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()
/external/skqp/src/ports/
DSkFontMgr_fuchsia.cpp220 if (fTypefaces.empty()) fTypefaces.resize(fStyles.size()); in createTypeface()
222 if (!fTypefaces[index]) { in createTypeface()
223 fTypefaces[index] = fFontManager->FetchTypeface( in createTypeface()
229 return SkSafeRef(fTypefaces[index].get()); in createTypeface()
238 std::vector<sk_sp<SkTypeface>> fTypefaces; member in SkFontStyleSet_Fuchsia
/external/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
/external/skia/modules/skparagraph/include/
DFontCollection.h68 SkTHashMap<FamilyKey, std::vector<sk_sp<SkTypeface>>, FamilyKey::Hasher> fTypefaces; variable
/external/skqp/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()
1821 if (!this->fTypefaces.empty()) {
1822 TypefaceUse* current = &this->fTypefaces.front();
1823 const TypefaceUse* last = &this->fTypefaces.back();
1868 TypefaceUse& newTypefaceUse = this->fTypefaces.push_back();
DSkXPSDevice.h135 SkTArray<TypefaceUse, true> fTypefaces; variable
/external/skia/src/xps/
DSkXPSDevice.h126 SkTArray<TypefaceUse, true> fTypefaces; variable
DSkXPSDevice.cpp119 , fCurrentPage(0), fTopTypefaces(&fTypefaces) {} in SkXPSDevice()