Skip to content

Commit

Permalink
feat: add font loading demo to playground
Browse files Browse the repository at this point in the history
- Support for woff2 and OpenType fonts.
- Supports switching fonts and examples by select.
  • Loading branch information
yisibl committed Sep 25, 2023
1 parent 977e9ac commit 6fb4fdc
Show file tree
Hide file tree
Showing 6 changed files with 265 additions and 51 deletions.
Binary file added example/Pacifico-Regular.woff2
Binary file not shown.
Binary file removed example/SourceHanSerifSC-Regular.otf
Binary file not shown.
Binary file removed example/SourceHanSerifSC-Regular.woff2
Binary file not shown.
Binary file added wasm/fonts/Pacifico-Regular.woff2
Binary file not shown.
316 changes: 265 additions & 51 deletions wasm/index.html

Large diffs are not rendered by default.

Binary file modified wasm/index_bg.wasm
Binary file not shown.

0 comments on commit 6fb4fdc

Please sign in to comment.