pathfinder icon indicating copy to clipboard operation
pathfinder copied to clipboard

Port the NanoVG demo to WebGL

Open pcwalton opened this issue 4 years ago • 1 comments

It'd be neat if the NanoVG demo could run in the browser, to show how to use Pathfinder as a canvas renderer on the Web.

pcwalton avatar May 02 '20 20:05 pcwalton

After looking at it, the main problem will be fonts. My WebGL demos all use a pure rust font parser and avoids the canvas API.

One approach could be to use a different CanvasFontContext on WebGL.

  • CanvasFontContext::from_system_source() will definitly not be avaible.

s3bk avatar May 04 '20 11:05 s3bk