servo / font-kit

A cross-platform font loading library written in Rust
Apache License 2.0
660 stars 98 forks source link

It is possible to use font-kit to render glyphs in an HTML5 canvas using WebAssembly (WASM) #208

Open lencil opened 1 year ago

lencil commented 1 year ago

I got two solution

  1. might use text rendered in canvas as glyph texture. no font need to be downloaded.
  2. might use downloaded font file with freetype wasm to raster the font.