harfbuzzjs
harfbuzzjs copied to clipboard
Providing HarfBuzz shaping library for client/server side JavaScript projects
We need some kind of test suite to verify builds. Currently we just test that the js code finish successfully, but the result can be totally broken and it will...
take it or leave it
In hbjs.js: ``` function createBlob(blob) { var blobPtr = exports.malloc(blob.byteLength); heapu8.set(blob, blobPtr); ``` In examples/nohbjs.html: ``` var fontBuffer = exports.malloc(fontBlob.byteLength); heapu8.set(new Uint8Array(fontBlob), fontBuffer); ``` I don't understand the difference but...
This paves the way to passing callback functions from JS to wasm and serves as an example.
I built a version of hb.wasm to try on COLRv1 fonts. (I used the supplied build.sh script, but commented out `#define HB_NO_COLOR` in hb-config.hh) The new hb.wasm works, but emits...
Make `hb_font_funcs_set_*` accessible from the JavaScript side, with HB being able to call JavaScript functions the user passed in. Had a quick look at this, but failed to understand the...
> --layout-features=list of string table tags or *
Hi, there! This is a satori contributor, currently satori has a lot of issues releated to font where we use opentype.js to render font. We are looking for a better...
While reviewing #82 I was surprised to find out that `shape()` does not actually use supplied features. Logging this so I don’t forget to fix it.
Hi, It feels a bit dirty to hardcode constants like this, especially if they're subject to change in new major versions: * https://github.com/papandreou/subset-font/blob/3c06f95ddd417038a854b707cc7a678abf0541bc/index.js#L44 * https://github.com/papandreou/subset-font/blob/3c06f95ddd417038a854b707cc7a678abf0541bc/index.js#L54 * https://github.com/papandreou/subset-font/blob/3c06f95ddd417038a854b707cc7a678abf0541bc/index.js#L62 Is there any...