Home
last modified time | relevance | path

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

/third_party/skia/modules/skparagraph/samples/
DSampleParagraph.cpp103 auto fontCollection = sk_make_sp<FontCollection>(); in drawTest() local
104 fontCollection->setDefaultFontManager(SkFontMgr::RefDefault()); in drawTest()
108 ParagraphBuilderImpl builder(paraStyle, fontCollection); in drawTest()
205 auto fontCollection = sk_make_sp<FontCollection>(); in drawCode() local
206 fontCollection->setDefaultFontManager(SkFontMgr::RefDefault()); in drawCode()
207 ParagraphBuilderImpl builder(paraStyle, fontCollection); in drawCode()
334 auto fontCollection = sk_make_sp<FontCollection>(); in drawLine() local
335 fontCollection->setDefaultFontManager(SkFontMgr::RefDefault()); in drawLine()
336 ParagraphBuilderImpl builder(paraStyle, fontCollection); in drawLine()
457 auto fontCollection = sk_make_sp<FontCollection>(); in drawLine() local
[all …]
/third_party/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp199 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST() local
200 if (!fontCollection->fontsFound()) return; in UNIX_ONLY_TEST()
206 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in UNIX_ONLY_TEST()
237 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST() local
239 if (!fontCollection->fontsFound()) return; in UNIX_ONLY_TEST()
247 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in UNIX_ONLY_TEST()
336 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST() local
338 if (!fontCollection->fontsFound()) return; in UNIX_ONLY_TEST()
346 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in UNIX_ONLY_TEST()
392 sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in UNIX_ONLY_TEST() local
[all …]
/third_party/skia/modules/skparagraph/src/
DParagraphBuilderImpl.cpp20 const ParagraphStyle& style, sk_sp<FontCollection> fontCollection) { in make() argument
21 return ParagraphBuilderImpl::make(style, fontCollection); in make()
25 const ParagraphStyle& style, sk_sp<FontCollection> fontCollection) { in make() argument
30 return std::make_unique<ParagraphBuilderImpl>(style, fontCollection); in make()
34 …const ParagraphStyle& style, sk_sp<FontCollection> fontCollection, std::unique_ptr<SkUnicode> unic… in make() argument
38 return std::make_unique<ParagraphBuilderImpl>(style, fontCollection, std::move(unicode)); in make()
42 …const ParagraphStyle& style, sk_sp<FontCollection> fontCollection, std::unique_ptr<SkUnicode> unic… in ParagraphBuilderImpl() argument
43 : ParagraphBuilder(style, fontCollection) in ParagraphBuilderImpl()
45 , fFontCollection(std::move(fontCollection)) in ParagraphBuilderImpl()
52 const ParagraphStyle& style, sk_sp<FontCollection> fontCollection) in ParagraphBuilderImpl() argument
[all …]
DParagraphBuilderImpl.h22 sk_sp<FontCollection> fontCollection,
26 ParagraphBuilderImpl(const ParagraphStyle& style, sk_sp<FontCollection> fontCollection);
65 sk_sp<FontCollection> fontCollection,
70 sk_sp<FontCollection> fontCollection);
DParagraphImpl.h145 sk_sp<FontCollection> fontCollection() const { return fFontCollection; }
DParagraphImpl.cpp903 auto typefaces = fontCollection()->findTypefaces( in computeEmptyMetrics()
/third_party/flutter/skia/tests/
DSkParagraphTest.cpp140 sk_sp<TestFontCollection> fontCollection = sk_make_sp<TestFontCollection>(); in DEF_TEST() local
141 if (!fontCollection->fontsFound()) return; in DEF_TEST()
146 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in DEF_TEST()
206 sk_sp<TestFontCollection> fontCollection = sk_make_sp<TestFontCollection>(); in DEF_TEST() local
207 if (!fontCollection->fontsFound()) return; in DEF_TEST()
212 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in DEF_TEST()
243 sk_sp<TestFontCollection> fontCollection = sk_make_sp<TestFontCollection>(); in DEF_TEST() local
245 if (!fontCollection->fontsFound()) return; in DEF_TEST()
263 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in DEF_TEST()
362 sk_sp<TestFontCollection> fontCollection = sk_make_sp<TestFontCollection>(); in DEF_TEST() local
[all …]
/third_party/flutter/skia/modules/skparagraph/src/
DParagraphBuilderImpl.cpp14 const ParagraphStyle& style, sk_sp<FontCollection> fontCollection) { in make() argument
15 return skstd::make_unique<ParagraphBuilderImpl>(style, fontCollection); in make()
19 const ParagraphStyle& style, sk_sp<FontCollection> fontCollection) in ParagraphBuilderImpl() argument
20 … : ParagraphBuilder(style, fontCollection), fUtf8(), fFontCollection(std::move(fontCollection)) { in ParagraphBuilderImpl()
DParagraphBuilderImpl.h20 ParagraphBuilderImpl(const ParagraphStyle& style, sk_sp<FontCollection> fontCollection);
DParagraphImpl.h84 sk_sp<FontCollection> fontCollection() const { return fFontCollection; } in fontCollection() function
DFontResolver.cpp234 fFontCollection = master->fontCollection(); in findAllFontsForAllStyledBlocks()
/third_party/skia/modules/skparagraph/bench/
DParagraphBench.cpp37 auto fontCollection = sk_make_sp<FontCollection>(); in onDraw() local
38 fontCollection->setDefaultFontManager(SkFontMgr::RefDefault()); in onDraw()
41 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in onDraw()
/third_party/flutter/skia/bench/
DParagraphBench.cpp37 auto fontCollection = sk_make_sp<FontCollection>(); in onDraw() local
38 fontCollection->setDefaultFontManager(SkFontMgr::RefDefault()); in onDraw()
41 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in onDraw()
/third_party/flutter/skia/modules/skparagraph/include/
DParagraphBuilder.h19 ParagraphBuilder(const ParagraphStyle& style, sk_sp<FontCollection> fontCollection) { } in ParagraphBuilder() argument
55 sk_sp<FontCollection> fontCollection);
/third_party/skia/src/ports/
DSkFontMgr_mac_ct.cpp445 SkFontMgr_Mac(CTFontCollectionRef fontCollection) in SkFontMgr_Mac() argument
446 : fNames(fontCollection ? SkCopyAvailableFontFamilyNames(fontCollection) in SkFontMgr_Mac()
449 , fFontCollection(fontCollection ? (CTFontCollectionRef)CFRetain(fontCollection) in SkFontMgr_Mac()
621 sk_sp<SkFontMgr> SkFontMgr_New_CoreText(CTFontCollectionRef fontCollection) { in SkFontMgr_New_CoreText() argument
622 return sk_make_sp<SkFontMgr_Mac>(fontCollection); in SkFontMgr_New_CoreText()
DSkFontMgr_win_dw.cpp333 SkFontMgr_DirectWrite(IDWriteFactory* factory, IDWriteFontCollection* fontCollection, in SkFontMgr_DirectWrite() argument
339 , fFontCollection(SkRefComPtr(fontCollection)) in SkFontMgr_DirectWrite()
1080 SkTScopedComPtr<IDWriteFontCollection> fontCollection; in onMakeFromStreamArgs() local
1082 &fontCollection)); in onMakeFromStreamArgs()
1085 UINT32 familyCount = fontCollection->GetFontFamilyCount(); in onMakeFromStreamArgs()
1088 HRN(fontCollection->GetFontFamily(familyIndex, &fontFamily)); in onMakeFromStreamArgs()
DSkRemotableFontMgr_win_dw.cpp87 SkRemotableFontMgr_DirectWrite(IDWriteFontCollection* fontCollection, in SkRemotableFontMgr_DirectWrite() argument
89 : fFontCollection(SkRefComPtr(fontCollection)) in SkRemotableFontMgr_DirectWrite()
/third_party/flutter/skia/src/ports/
DSkFontMgr_win_dw.cpp270 SkFontMgr_DirectWrite(IDWriteFactory* factory, IDWriteFontCollection* fontCollection, in SkFontMgr_DirectWrite() argument
276 , fFontCollection(SkRefComPtr(fontCollection)) in SkFontMgr_DirectWrite()
920 SkTScopedComPtr<IDWriteFontCollection> fontCollection; in onMakeFromStreamIndex() local
921 …HRN(fFactory->CreateCustomFontCollection(fontCollectionLoader.get(), nullptr, 0, &fontCollection)); in onMakeFromStreamIndex()
924 UINT32 familyCount = fontCollection->GetFontFamilyCount(); in onMakeFromStreamIndex()
927 HRN(fontCollection->GetFontFamily(familyIndex, &fontFamily)); in onMakeFromStreamIndex()
968 SkTScopedComPtr<IDWriteFontCollection> fontCollection; in onMakeFromStreamArgs() local
970 &fontCollection)); in onMakeFromStreamArgs()
973 UINT32 familyCount = fontCollection->GetFontFamilyCount(); in onMakeFromStreamArgs()
976 HRN(fontCollection->GetFontFamily(familyIndex, &fontFamily)); in onMakeFromStreamArgs()
DSkRemotableFontMgr_win_dw.cpp87 SkRemotableFontMgr_DirectWrite(IDWriteFontCollection* fontCollection, in SkRemotableFontMgr_DirectWrite() argument
89 : fFontCollection(SkRefComPtr(fontCollection)) in SkRemotableFontMgr_DirectWrite()
/third_party/flutter/skia/samplecode/
DSampleParagraph.cpp105 auto fontCollection = sk_make_sp<FontCollection>(); in drawTest() local
106 fontCollection->setDefaultFontManager(SkFontMgr::RefDefault()); in drawTest()
110 ParagraphBuilderImpl builder(paraStyle, fontCollection); in drawTest()
207 auto fontCollection = sk_make_sp<FontCollection>(); in drawCode() local
208 fontCollection->setDefaultFontManager(SkFontMgr::RefDefault()); in drawCode()
209 ParagraphBuilderImpl builder(paraStyle, fontCollection); in drawCode()
328 auto fontCollection = sk_make_sp<FontCollection>(); in drawLine() local
329 fontCollection->setDefaultFontManager(SkFontMgr::RefDefault()); in drawLine()
330 ParagraphBuilderImpl builder(paraStyle, fontCollection); in drawLine()
452 auto fontCollection = sk_make_sp<FontCollection>(); in drawLine() local
[all …]
/third_party/skia/fuzz/
DFuzzSkParagraph.cpp259 static sk_sp<ResourceFontCollection> fontCollection = sk_make_sp<ResourceFontCollection>(); in DEF_FUZZ() local
261 ParagraphBuilderImpl builder(paragraph_style, fontCollection); in DEF_FUZZ()
/third_party/skia/modules/skparagraph/include/
DParagraphBuilder.h63 sk_sp<FontCollection> fontCollection);