Lines Matching refs:CanvasKit
37 const paint = new CanvasKit.Paint();
39 paint.setStyle(CanvasKit.PaintStyle.Stroke);
41 const font = new CanvasKit.Font(null, 24);
42 const fontPaint = new CanvasKit.Paint();
44 fontPaint.setStyle(CanvasKit.PaintStyle.Fill);
47 const arc = new CanvasKit.Path();
48 arc.arcToOval(CanvasKit.LTRBRect(20, 40, 280, 300), -160, 140, true);
50 arc.arcToOval(CanvasKit.LTRBRect(20, 0, 280, 260), 160, -140, true);
54 const textBlob = CanvasKit.TextBlob.MakeOnPath(str, arc, font);
67 const fontMgr = CanvasKit.FontMgr.RefDefault();
70 const paint = new CanvasKit.Paint();
72 paint.setStyle(CanvasKit.PaintStyle.Stroke);
74 const font = new CanvasKit.Font(notoSerif, 24);
75 const fontPaint = new CanvasKit.Paint();
77 fontPaint.setStyle(CanvasKit.PaintStyle.Fill);
79 const arc = new CanvasKit.Path();
80 arc.arcToOval(CanvasKit.LTRBRect(20, 40, 280, 300), -160, 140, true);
82 arc.arcToOval(CanvasKit.LTRBRect(20, 0, 280, 260), 160, -140, true);
85 const textBlob = CanvasKit.TextBlob.MakeOnPath(str, arc, font, 60.5);
101 const fontMgr = CanvasKit.FontMgr.RefDefault();
105 canvas.clear(CanvasKit.Color(255, 255, 0, 1));
107 const font = new CanvasKit.Font(bungee, 24);
108 const fontPaint = new CanvasKit.Paint();
110 fontPaint.setStyle(CanvasKit.PaintStyle.Fill);
114 const textBlob = CanvasKit.TextBlob.MakeFromText(str + ' text blob', font);
130 canvas.clear(CanvasKit.WHITE);
131 const fontMgr = CanvasKit.FontMgr.RefDefault();
134 const font = new CanvasKit.Font(notoSerif, 24);
135 const bluePaint = new CanvasKit.Paint();
136 bluePaint.setColor(CanvasKit.parseColorString('#04083f')); // arbitrary deep blue
138 bluePaint.setStyle(CanvasKit.PaintStyle.Fill);
140 const redPaint = new CanvasKit.Paint();
141 redPaint.setColor(CanvasKit.parseColorString('#770b1e')); // arbitrary deep red
158 const topBlob = CanvasKit.TextBlob.MakeFromGlyphs(ids, font);
163 const mIDs = CanvasKit.MallocGlyphIDs(ids.length);
167 const mXforms = CanvasKit.Malloc(Float32Array, ids.length * 4);
179 const bottomBlob = CanvasKit.TextBlob.MakeFromRSXformGlyphs(mIDs, mXforms, font);
184 CanvasKit.Free(mIDs);
185 CanvasKit.Free(mXforms);
195 const fontMgr = CanvasKit.FontMgr.FromData(bungeeFontBuffer, notoSerifFontBuffer);
206 const fontProvider = CanvasKit.TypefaceFontProvider.Make();
219 const fontMgr = CanvasKit.FontMgr.RefDefault();
220 const fontPaint = new CanvasKit.Paint();
222 fontPaint.setStyle(CanvasKit.PaintStyle.Fill);
241 const defaultFont = new CanvasKit.Font(null, 24);
249 const font = new CanvasKit.Font(typeface, 24);
279 const fontMgr = CanvasKit.FontMgr.RefDefault();
289 const font = new CanvasKit.Font(typeface, fontSizes[idx]);
290 font.setHinting(CanvasKit.FontHinting.None);
307 canvas.clear(CanvasKit.WHITE);
308 const fontMgr = CanvasKit.FontMgr.RefDefault();
311 const textPaint = new CanvasKit.Paint();
312 const annotationFont = new CanvasKit.Font(notoSerif, 6);
319 const testFont = new CanvasKit.Font(notoSerif, 20);
322 testFont.setEdging(CanvasKit.FontEdging.Alias);
324 testFont.setEdging(CanvasKit.FontEdging.AntiAlias);
326 testFont.setEdging(CanvasKit.FontEdging.SubpixelAntiAlias);