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 2c748b8 commit fdf31e1
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 47 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.
308 changes: 261 additions & 47 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 fdf31e1

Please sign in to comment.