Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hb_font_funcs setter functions #95

Open
madig opened this issue Jan 5, 2024 · 3 comments
Open

Add hb_font_funcs setter functions #95

madig opened this issue Jan 5, 2024 · 3 comments

Comments

@madig
Copy link

madig commented Jan 5, 2024

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
Copy link

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

  • hb_font_funcs_set_nominal_glyph_func
  • hb_font_funcs_set_glyph_h_advance_func
  • hb_font_funcs_set_glyph_v_advance_func
  • hb_font_funcs_set_glyph_v_origin_func

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
Copy link
Contributor

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

@khaledhosny
Copy link
Contributor

See #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants