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 bd29994
Show file tree
Hide file tree
Showing 6 changed files with 272 additions and 49 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.
321 changes: 272 additions & 49 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 bd29994

Please sign in to comment.