Closed ab-etemadi closed 1 year ago
Please see #183 and #518.
@Connum Thank you for your assistance! I was able to optimize the code using the following approach:
this.font = await fontBuffer
.then((buffer) => Module.decompress(buffer))
.then((buffer) => opentype.parse(Uint8Array.from(buffer).buffer));
}
Using opentypejs cdn to load the font endups to the
Error: Unsupported OpenType signature wOF2
errorExpected Behavior
load the font
Current Behavior
Error: Unsupported OpenType signature wOF2
Possible Solution
Steps to Reproduce (for bugs)
https://dl.dafont.com/dl/?f=roboto
or any other sourceError: Unsupported OpenType signature wOF2
Your Environment
Shopify liquid template engine