Closed yisibl closed 2 years ago
This is a font with CFF table and hb.wasm is not built with CFF support, so getting glyph path and extents are not supported. Enabling CFF support increases the file size by about 40KB, so I’m not sure if we want to do this.
Thinking more, I’m leaning towards enabling this by default. People who are more file size-conscious should build their own hb.wasm with modified override file to fit their needs.
Yes, in Node.js it doesn't matter much about the size of the wasm file.
Maybe it's possible to build two versions, one with CFF?
A "kitchen sink" build sounds like a good idea, also when it comes to other potentially useful features that might not make the cut otherwise.
A "kitchen sink" build sounds like a good idea, also when it comes to other potentially useful features that might not make the cut otherwise.
I agree a full build would also be interesting.
Open: https://harfbuzz.github.io/harfbuzzjs/
Use Font
WenYue_YingHei-JF.otf.zip