summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-12-04 22:01:58 -0800
committerMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-12-04 22:01:58 -0800
commitdf302fc2b6f700cdadcc08e88dfc4b3f4d626c1a (patch)
tree61e380e79c2142254872bf2f2f5b695b2406ca8c /example
parent37f00ac7250c589d22819b2741186ffa5ad1438a (diff)
calculate font metrics via canvas
Diffstat (limited to 'example')
-rw-r--r--example/app.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/app.ts b/example/app.ts
index aac4e7b26..8b3528223 100644
--- a/example/app.ts
+++ b/example/app.ts
@@ -41,8 +41,8 @@ fetch(url.href).then(response =>
new Uint8Array(memory.buffer, font_ptr).set(font);
// Call whatever example you want:
- const face = face_new(font_ptr, font.byteLength);
- face_free(face);
+ const face = face_new(font_ptr, font.byteLength, 14);
+ //face_free(face);
} finally {
free(font_ptr);
}