tree: 11b59a3a5fe683e2afc33a7b63c21db508c3dfab [path history] [tgz]
  1. .gitignore
  2. index.html
  3. README.md
  4. TTC.ttc
third_party/rust_crates/vendor/ttf-parser-0.10.1/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