Skip to content

Commit

Permalink
Switch to a harfbuzzjs fork with a newer build
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 8, 2021
1 parent 32e03b8 commit 78995cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const loadAndInitializeHarfbuzz = _.once(async () => {
const {
instance: { exports },
} = await WebAssembly.instantiate(
await readFile(require.resolve('harfbuzzjs/subset/hb-subset.wasm'))
await readFile(
require.resolve('harfbuzzjs-papandreou/subset/hb-subset.wasm')
)
);
exports.memory.grow(400); // each page is 64kb in size

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"dependencies": {
"fontverter": "^1.0.0",
"harfbuzzjs": "^0.1.3",
"harfbuzzjs-papandreou": "^0.1.3-patch1",
"p-limit": "^3.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit 78995cf

Please sign in to comment.