Searched refs:fTypefaces (Results 1 – 11 of 11) sorted by relevance
/external/skia/src/core/ |
D | SkTypefaceCache.cpp | 17 if (fTypefaces.size() >= 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.size(); in purge() 37 if (fTypefaces[i]->unique()) { in purge() 38 fTypefaces.removeShuffle(i); in purge() 50 this->purge(fTypefaces.size()); in purgeAll()
|
D | SkTypefaceCache.h | 71 SkTArray<sk_sp<SkTypeface>> fTypefaces; variable
|
/external/skia/gm/ |
D | fontcache.cpp | 62 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
|
D | variedtext.cpp | 66 SkASSERTF(4 == std::size(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(std::size(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/skia/tools/fonts/ |
D | TestFontMgr.cpp | 35 int count() override { return fTypefaces.size(); } in count() 39 *style = fTypefaces[index].fStyle; in getStyle() 42 *name = fTypefaces[index].fStyleName; in getStyle() 47 return SkRef(fTypefaces[index].fTypeface.get()); in createTypeface() 56 std::vector<TypefaceEntry> fTypefaces; member in __anon8210e2d40111::FontStyleSet 67 ss->fTypefaces.emplace_back(face.typeface, face.typeface->fontStyle(), face.name); in FontMgr() 77 fDefaultTypeface = fDefaultFamily->fTypefaces[0].fTypeface; in FontMgr() 82 fFamilies.back()->fTypefaces.emplace_back( in FontMgr() 86 fFamilies.back()->fTypefaces.emplace_back( in FontMgr()
|
/external/skia/experimental/sktext/src/ |
D | Paint.h | 51 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;
|
/external/skia/modules/skparagraph/src/ |
D | FontCollection.cpp | 87 auto found = fTypefaces.find(familyKey); in findTypefaces() 124 fTypefaces.set(familyKey, typefaces); in findTypefaces() 181 fTypefaces.reset(); in clearCaches()
|
/external/skia/src/ports/ |
D | SkFontMgr_fuchsia.cpp | 334 if (fTypefaces.empty()) fTypefaces.resize(fStyles.size()); in createTypeface() 336 if (!fTypefaces[index]) { in createTypeface() 337 fTypefaces[index] = fFontManager->FetchTypeface( in createTypeface() 343 return SkSafeRef(fTypefaces[index].get()); in createTypeface() 352 std::vector<sk_sp<SkTypeface>> fTypefaces; member in SkFontStyleSet_Fuchsia
|
/external/skia/modules/skparagraph/include/ |
D | FontCollection.h | 72 SkTHashMap<FamilyKey, std::vector<sk_sp<SkTypeface>>, FamilyKey::Hasher> fTypefaces; variable
|
/external/skia/src/xps/ |
D | SkXPSDevice.h | 129 SkTArray<TypefaceUse, true> fTypefaces; variable
|
D | SkXPSDevice.cpp | 124 , fCurrentPage(0), fTopTypefaces(&fTypefaces) {} in SkXPSDevice()
|