diff --git a/example/Pacifico-Regular.woff2 b/example/Pacifico-Regular.woff2 new file mode 100644 index 00000000..df468aba Binary files /dev/null and b/example/Pacifico-Regular.woff2 differ diff --git a/example/SourceHanSerifSC-Regular.otf b/example/SourceHanSerifSC-Regular.otf deleted file mode 100644 index 0dd496aa..00000000 Binary files a/example/SourceHanSerifSC-Regular.otf and /dev/null differ diff --git a/example/SourceHanSerifSC-Regular.woff2 b/example/SourceHanSerifSC-Regular.woff2 deleted file mode 100644 index 9a559efc..00000000 Binary files a/example/SourceHanSerifSC-Regular.woff2 and /dev/null differ diff --git a/wasm/fonts/Pacifico-Regular.woff2 b/wasm/fonts/Pacifico-Regular.woff2 new file mode 100644 index 00000000..df468aba Binary files /dev/null and b/wasm/fonts/Pacifico-Regular.woff2 differ diff --git a/wasm/index.html b/wasm/index.html index e52b75c7..e8691889 100644 --- a/wasm/index.html +++ b/wasm/index.html @@ -136,6 +136,12 @@ .opts-cell label { margin-right: .5em; } + + #slt-svg, + #slt-font { + max-width: 180px; + } + .github { fill: #151513; color: #fff; @@ -155,29 +161,107 @@ animation: octocat-wave 560ms ease-in-out; } + +
@@ -282,13 +472,28 @@

resvg-js playground

- - + +
+
+ + +
+
+ + +
@@ -307,21 +512,7 @@

resvg-js playground

- +
diff --git a/wasm/index_bg.wasm b/wasm/index_bg.wasm index 76aedf2e..6b955d1d 100644 Binary files a/wasm/index_bg.wasm and b/wasm/index_bg.wasm differ