Skip to content

Commit

Permalink
Increase the WebAssembly heap size to accommodate larger fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed May 17, 2021
1 parent 338fe82 commit 3dfc48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const loadAndInitializeHarfbuzz = _.once(async () => {
} = await WebAssembly.instantiate(
await readFile(require.resolve('harfbuzzjs/subset/hb-subset.wasm'))
);
exports.memory.grow(400); // each page is 64kb in size
exports.memory.grow(2000); // each page is 64kb in size

const heapu8 = new Uint8Array(exports.memory.buffer);
return [exports, heapu8];
Expand Down

0 comments on commit 3dfc48a

Please sign in to comment.