-
Notifications
You must be signed in to change notification settings - Fork 20
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
harfbuzz #9
Comments
I'm not sure how that would work. You're talking about adding a javascript accessor to FontFace that returns its |
yes. I'm currently serializing it to JS as hex string and de-serialising back from string in harfbuzz binding: https://github.com/sidorares/node-freetype2/blob/face-handle/src/FontFace.cc#L67-L74 |
That seems a little wonky. How about this? |
Yeah, I like your approach more. Can you think of some way of having freetype2 as peer dependency? They going to be used alongside
It does. It kind of worked for me but only partially, hb_shape returns correct list of glyph infos but all glyph positions are garbage. I'll try your way, thanks a lot! |
hmm, still the same problem. Maybe FT needs to be initialised in the same dynamic library to work properly? xAdvance is completely irrelevant
|
There is the way I like from architecture point of view, but it's hard to implement ( and not very performant ). Instead of using hb_ft helpers that access all tables in the face directly, provide callbacks to hb module and implement all glyphs-measuring code on top |
I'd like to implement harfbuzz node binding. At the same time I need to use FT2 font rendering. Harfbuzz code looks like this:
What do you think re adding raw FT_Face handle accessor?
The text was updated successfully, but these errors were encountered: