tree: 066f39cf35e09c70976cf246e93357c5a8d19050 [path history] [tgz]
  1. index.html
  2. README.md
  3. TTC.ttc
third_party/rust_crates/tiny_mirrors/ttf-parser/examples/wasm/README.md

ttf-parser as a WebAssembly module

Build

rustup target add wasm32-unknown-unknown

cargo build --target wasm32-unknown-unknown --release --manifest-path ../../c-api/Cargo.toml
cp ../../c-api/target/wasm32-unknown-unknown/release/ttfparser.wasm .

Run

You can use any webserver that can serve index.html. Here is a Python example:

python -m http.server