Home
last modified time | relevance | path

Searched refs:fontMgr (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/modules/canvaskit/tests/
Dparagraph.spec.js55 const fontMgr = CanvasKit.FontMgr.FromData(notoSerifFontBuffer);
56 expect(fontMgr.countFamilies()).toEqual(1);
57 expect(fontMgr.getFamilyName(0)).toEqual('Noto Serif');
72 const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
131 fontMgr.delete();
137 const fontMgr = CanvasKit.FontMgr.FromData(notoSerifFontBuffer);
138 expect(fontMgr.countFamilies()).toEqual(1);
139 expect(fontMgr.getFamilyName(0)).toEqual('Noto Serif');
154 const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
163 fontMgr.delete();
[all …]
Dfont.spec.js189 const fontMgr = CanvasKit.FontMgr.FromData(bungeeFontBuffer, notoSerifFontBuffer); constant
190 expect(fontMgr).toBeTruthy();
191 expect(fontMgr.countFamilies()).toBe(2);
193 if (fontMgr.dumpFamilies) {
194 fontMgr.dumpFamilies();
196 fontMgr.delete();
/third_party/flutter/skia/modules/canvaskit/tests/
Dfont.spec.js41 const fontMgr = CanvasKit.SkFontMgr.RefDefault();
42 const notoSerif = fontMgr.MakeTypefaceFromData(notSerifFontBuffer);
92 fontMgr.delete();
150 const fontMgr = CanvasKit.SkFontMgr.RefDefault();
151 const notoSerif = fontMgr.MakeTypefaceFromData(notSerifFontBuffer);
183 fontMgr.delete();
/third_party/flutter/skia/tests/
DFontMgrFontConfigTest.cpp43 sk_sp<SkFontMgr> fontMgr(SkFontMgr_New_FontConfig(config)); in DEF_TEST() local
44 sk_sp<SkTypeface> typeface(fontMgr->legacyMakeTypeface("Distortable", SkFontStyle())); in DEF_TEST()
83 fontMgr->makeFromStream(distortableStream->duplicate(), in DEF_TEST()
DFontMgrAndroidParserTest.cpp292 sk_sp<SkFontMgr> fontMgr(SkFontMgr_New_Android(&custom)); in DEF_TEST() local
294 sk_sp<SkTypeface> typeface(fontMgr->legacyMakeTypeface("sans-serif", SkFontStyle())); in DEF_TEST()
329 fontMgr->makeFromStream(distortableStream->duplicate(), in DEF_TEST()
369 sk_sp<SkFontMgr> fontMgr(SkFontMgr_New_Android(&custom)); in DEF_TEST() local
373 sk_sp<SkTypeface> typeface(fontMgr->matchFamilyStyleCharacter( in DEF_TEST()
/third_party/skia/tests/
DFontMgrFontConfigTest.cpp44 sk_sp<SkFontMgr> fontMgr(SkFontMgr_New_FontConfig(config)); in DEF_TEST() local
45 sk_sp<SkTypeface> typeface(fontMgr->legacyMakeTypeface("Distortable", SkFontStyle())); in DEF_TEST()
84 fontMgr->makeFromStream(distortableStream->duplicate(), in DEF_TEST()
DFontMgrAndroidParserTest.cpp291 sk_sp<SkFontMgr> fontMgr(SkFontMgr_New_Android(&custom)); in DEF_TEST() local
293 sk_sp<SkTypeface> typeface(fontMgr->legacyMakeTypeface("sans-serif", SkFontStyle())); in DEF_TEST()
328 fontMgr->makeFromStream(distortableStream->duplicate(), in DEF_TEST()
368 sk_sp<SkFontMgr> fontMgr(SkFontMgr_New_Android(&custom)); in DEF_TEST() local
372 sk_sp<SkTypeface> typeface(fontMgr->matchFamilyStyleCharacter( in DEF_TEST()
/third_party/skia/modules/androidkit/src/
DFont.cpp19 sk_sp<SkFontMgr> fontMgr = SkFontMgr::RefDefault(); in Font_Create() local
20 …sk_sp<SkTypeface> typeface = sk_sp<SkTypeface>(fontMgr->matchFamilyStyle(cFontFamily, SkFontStyle(… in Font_Create()
/third_party/skia/docs/examples/
DColor_Wheel.cpp26 sk_sp<SkFontMgr> fontMgr = SkFontMgr::RefDefault(); in draw_color_wheel() local
27 SkFont font(fontMgr->legacyMakeTypeface(nullptr, SkFontStyle::Bold()), size); in draw_color_wheel()
/third_party/flutter/skia/gm/
Dfontscalerdistortable.cpp52 sk_sp<SkFontMgr> fontMgr(SkFontMgr::RefDefault()); in onDraw() local
84 font.setTypeface(fontMgr->makeFromStream( in onDraw()
/third_party/skia/gm/
Dfontscalerdistortable.cpp51 sk_sp<SkFontMgr> fontMgr(SkFontMgr::RefDefault()); in onOnceBeforeDraw() local
87 return fontMgr->makeFromStream(distortableStream->duplicate(), in onOnceBeforeDraw()
/third_party/flutter/skia/modules/canvaskit/canvaskit/
Dnode.example.js54 const fontMgr = CanvasKit.SkFontMgr.RefDefault();
56 const roboto = fontMgr.MakeTypefaceFromData(robotoData);
/third_party/skia/site/docs/user/modules/
Dquickstart.md267 const fontMgr = CanvasKit.FontMgr.FromData([robotoData]);
277 const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
297 const fontMgr = CanvasKit.FontMgr.FromData([robotoData]);
307 const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
318 const fontMgr = CanvasKit.FontMgr.FromData([robotoData]);
342 const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
351 const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
Dcanvaskit.md356 const fontMgr = CanvasKit.FontMgr.FromData([robotoData, emojiData]);
369 const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
/third_party/skia/modules/skottie/src/
DSkottiePriv.h221 LazyResolveFontMgr(sk_sp<SkFontMgr> fontMgr) : fFontMgr(std::move(fontMgr)) {} in LazyResolveFontMgr()
/third_party/flutter/skia/modules/skottie/src/
DSkottiePriv.h204 LazyResolveFontMgr(sk_sp<SkFontMgr> fontMgr) : fFontMgr(std::move(fontMgr)) {} in LazyResolveFontMgr()
/third_party/skia/modules/svg/include/
DSkSVGRenderContext.h142 sk_sp<SkFontMgr> fontMgr() const { in fontMgr() function
/third_party/skia/tools/perf-canvaskit-puppeteer/
Dcanvas_perf.js600 ctx.fontMgr = CanvasKit.FontMgr.FromData([ctx.files['Roboto-Regular.ttf']]);
614 const builder = CanvasKit.ParagraphBuilder.Make(ctx.paraStyle, ctx.fontMgr);
654 ctx.fontMgr.delete();
/third_party/skia/modules/svg/src/
DSkSVGText.cpp77 auto tf = ctx.fontMgr()->legacyMakeTypeface(family.c_str(), style); in ResolveFont()
232 , fShaper(SkShaper::Make(ctx.fontMgr())) in SkSVGTextContext()
/third_party/skia/modules/canvaskit/
Dparagraph_bindings.cpp435 optional_override([](SimpleParagraphStyle style, sk_sp<SkFontMgr> fontMgr) in EMSCRIPTEN_BINDINGS()
438 fc->setDefaultFontManager(fontMgr); in EMSCRIPTEN_BINDINGS()
/third_party/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts523 function paragraphBuilderTests(CK: CanvasKit, fontMgr?: FontMgr, paint?: Paint) {
524 if (!fontMgr || !paint) return;
559 const builder = CK.ParagraphBuilder.Make(paraStyle, fontMgr); // $ExpectType ParagraphBuilder
/third_party/skia/src/ports/
DSkFontMgr_win_dw.cpp389 SkFontStyleSet_DirectWrite(const SkFontMgr_DirectWrite* fontMgr, in SkFontStyleSet_DirectWrite() argument
391 : fFontMgr(SkRef(fontMgr)) in SkFontStyleSet_DirectWrite()
/third_party/flutter/skia/src/ports/
DSkFontMgr_win_dw.cpp328 SkFontStyleSet_DirectWrite(const SkFontMgr_DirectWrite* fontMgr, in SkFontStyleSet_DirectWrite() argument
330 : fFontMgr(SkRef(fontMgr)) in SkFontStyleSet_DirectWrite()