9 ms·
If you just want to run locally. Why not using the native libharfbuzz directly? What's the purpose of WASM here?
by okcdz 2y ago
If you just want to run locally. Why not using the native libharfbuzz directly? What's the purpose of WASM here?
- bawolff 2y agoWASM is to libharfbuzz (when experimental compile time option is enabled) what javascript is to HTML. So this is essentially native (albeit experimental) libharfbuzz. WASM is used because its how font files are scripted (when using this experimental version of lubharfbuzz) Its important to keep in mind that wasm is a general technology and is not just used by web browsers.
- 0x457 2y agoFont includes WASM code that harfbuzz executes for shaping: https://github.com/harfbuzz/harfbuzz/blob/main/docs/wasm-shaper.md https://github.com/harfbuzz/harfbuzz/blob/main/docs/wasm-sha... It's an experimental feature, so it's not available unless explicitly enabled during compilation.