File: README.md

package info (click to toggle)
rust-ttf-parser 0.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,300 kB
  • sloc: makefile: 2
file content (18 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# ttf-parser as a WebAssembly module

## Build

```sh
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:

```sh
python -m http.server
```