/third_party/skia/modules/canvaskit/tests/ |
D | paragraph.spec.js | 55 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 …]
|
D | font.spec.js | 189 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/ |
D | font.spec.js | 41 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/skia/tests/ |
D | FontMgrFontConfigTest.cpp | 44 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()
|
D | FontMgrAndroidParserTest.cpp | 291 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/flutter/skia/tests/ |
D | FontMgrFontConfigTest.cpp | 43 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()
|
D | FontMgrAndroidParserTest.cpp | 292 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/modules/androidkit/src/ |
D | Font.cpp | 19 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/ |
D | Color_Wheel.cpp | 26 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/ |
D | fontscalerdistortable.cpp | 52 sk_sp<SkFontMgr> fontMgr(SkFontMgr::RefDefault()); in onDraw() local 84 font.setTypeface(fontMgr->makeFromStream( in onDraw()
|
/third_party/skia/gm/ |
D | fontscalerdistortable.cpp | 51 sk_sp<SkFontMgr> fontMgr(SkFontMgr::RefDefault()); in onOnceBeforeDraw() local 87 return fontMgr->makeFromStream(distortableStream->duplicate(), in onOnceBeforeDraw()
|
/third_party/flutter/skia/modules/canvaskit/canvaskit/ |
D | node.example.js | 54 const fontMgr = CanvasKit.SkFontMgr.RefDefault(); 56 const roboto = fontMgr.MakeTypefaceFromData(robotoData);
|
/third_party/skia/site/docs/user/modules/ |
D | quickstart.md | 267 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);
|
D | canvaskit.md | 356 const fontMgr = CanvasKit.FontMgr.FromData([robotoData, emojiData]); 369 const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
|
/third_party/skia/modules/skottie/src/ |
D | SkottiePriv.h | 221 LazyResolveFontMgr(sk_sp<SkFontMgr> fontMgr) : fFontMgr(std::move(fontMgr)) {} in LazyResolveFontMgr()
|
/third_party/flutter/skia/modules/skottie/src/ |
D | SkottiePriv.h | 204 LazyResolveFontMgr(sk_sp<SkFontMgr> fontMgr) : fFontMgr(std::move(fontMgr)) {} in LazyResolveFontMgr()
|
/third_party/skia/modules/svg/include/ |
D | SkSVGRenderContext.h | 140 sk_sp<SkFontMgr> fontMgr() const { in fontMgr() function
|
/third_party/skia/tools/perf-canvaskit-puppeteer/ |
D | canvas_perf.js | 600 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/canvaskit/ |
D | paragraph_bindings.cpp | 435 optional_override([](SimpleParagraphStyle style, sk_sp<SkFontMgr> fontMgr) in EMSCRIPTEN_BINDINGS() 438 fc->setDefaultFontManager(fontMgr); in EMSCRIPTEN_BINDINGS()
|
/third_party/skia/modules/svg/src/ |
D | SkSVGText.cpp | 77 auto tf = ctx.fontMgr()->legacyMakeTypeface(family.c_str(), style); in ResolveFont() 232 , fShaper(SkShaper::Make(ctx.fontMgr())) in SkSVGTextContext()
|
/third_party/skia/modules/canvaskit/npm_build/types/ |
D | canvaskit-wasm-tests.ts | 523 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/ |
D | SkFontMgr_win_dw.cpp | 389 SkFontStyleSet_DirectWrite(const SkFontMgr_DirectWrite* fontMgr, in SkFontStyleSet_DirectWrite() argument 391 : fFontMgr(SkRef(fontMgr)) in SkFontStyleSet_DirectWrite()
|
/third_party/flutter/skia/src/ports/ |
D | SkFontMgr_win_dw.cpp | 328 SkFontStyleSet_DirectWrite(const SkFontMgr_DirectWrite* fontMgr, in SkFontStyleSet_DirectWrite() argument 330 : fFontMgr(SkRef(fontMgr)) in SkFontStyleSet_DirectWrite()
|