This PR exposes hb_face_collect_unicodes() and face.collectUnicodes().
But:
Adds more 10KBs (274KB -> 284KB) of hb.wasm size
Enables management functions of hb_set_t for only internal but doesn't add any helpers like createSet() and HarfBuzzSet class
Adds typedArrayFromSet() helper function for internal use
I don't know if this helps someone other than me so feel free to close or fix it. This can resolve this needs (an old Stack Overflow question) but not others as far as I searched.
If it will create createSet(), moving typedArrayFromSet() into result object with renaming should be better.
This PR exposes
hb_face_collect_unicodes()
andface.collectUnicodes()
. But:hb.wasm
sizehb_set_t
for only internal but doesn't add any helpers likecreateSet()
andHarfBuzzSet
classtypedArrayFromSet()
helper function for internal useI don't know if this helps someone other than me so feel free to close or fix it. This can resolve this needs (an old Stack Overflow question) but not others as far as I searched.
If it will create
createSet()
, movingtypedArrayFromSet()
into result object with renaming should be better.