https://github.com/seanchas116/wasm-text-rendering
Get glyph data and render text to a canvas using Rust wasm
https://github.com/seanchas116/wasm-text-rendering
javascript rust wasm webassembly
Last synced: about 1 year ago
JSON representation
Get glyph data and render text to a canvas using Rust wasm
- Host: GitHub
- URL: https://github.com/seanchas116/wasm-text-rendering
- Owner: seanchas116
- Created: 2022-09-08T04:52:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T05:06:30.000Z (over 3 years ago)
- Last Synced: 2025-04-18T00:10:37.496Z (about 1 year ago)
- Topics: javascript, rust, wasm, webassembly
- Language: Rust
- Homepage: https://wasm-text-rendering.vercel.app/
- Size: 8.6 MB
- Stars: 18
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wasm-text-rendering
Get glyph data and render text to a canvas using Rust Wasm
## Used libraries
- [rustybuzz](https://github.com/RazrFalcon/rustybuzz) for text shaping
- [ttf-parser](https://github.com/RazrFalcon/ttf-parser) for retrieving glyph outlines
- [unicode-linebreak](https://github.com/axelf4/unicode-linebreak) for text wrapping
## Setup
- Make sure Rust and wasm-pack are installed
```bash
npm install
npm run wasm:build
npm run dev
```