Skip to content

Commit

Permalink
Fix typo in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
9-2-1 authored and behdad committed Jun 10, 2023
1 parent 78f4959 commit 6f4b5a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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;
Expand All @@ -53,6 +53,7 @@ WebAssembly.instantiateStreaming(fetch("hb.wasm")).then(function (result) {
font.destroy();
face.destroy();
blob.destroy();
})
})
```

Expand Down

0 comments on commit 6f4b5a4

Please sign in to comment.