From b34bffdb2ce8dc854854a83a762d8e00758e0467 Mon Sep 17 00:00:00 2001 From: six-6 <1195132772@qq.com> Date: Mon, 24 Oct 2022 09:50:25 +0800 Subject: [PATCH] Fix typo in README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 902fb86..04fadfb 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ demo source is in [gh-pages](https://github.com/harfbuzz/harfbuzzjs/tree/gh-page ## Usage and testing -### TDLR +### TL;DR ```javascript hb = require("hbjs.js") @@ -30,7 +30,7 @@ WebAssembly.instantiateStreaming(fetch("hb.wasm")).then(function (result) { buffer.addText('abc'); // Fill it with some stuff buffer.guessSegmentProperties(); // Set script, language and direction hb.shape(font, buffer); // Shape the text, determining glyph IDs and positions - var output = shape.json(); + var output = buffer.json(); // Enumerate the glyphs var xCursor = 0; @@ -53,6 +53,7 @@ WebAssembly.instantiateStreaming(fetch("hb.wasm")).then(function (result) { font.destroy(); face.destroy(); blob.destroy(); + }) }) ```