harfbuzz / harfbuzzjs

Providing HarfBuzz shaping library for client/server side JavaScript projects
https://harfbuzz.github.io/harfbuzzjs/
Other
204 stars 35 forks source link

Add hb_font_funcs setter functions #95

Open madig opened 9 months ago

madig commented 9 months ago

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 emscripten docs and various StackOverflow answers...

justvanrossum commented 7 months ago

We will need this, too, at some point. Specifically these:

I am brand new to this project (although I have used and contributed to the equivalent parts of uharfbuzz), and hope to find my way so I can contribute.

In the meantime, some guidance about how to approach this would be very welcome.

khaledhosny commented 6 months ago

You can see an example of setting drawfuncs here: https://github.com/aliftype/rana-kufi/blob/99f9ba560e3c4a6d858d2b9d2c807466fb975c49/docs/app/HarfBuzz.js#L116

khaledhosny commented 6 months ago

See #97