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
[interpolatable] WIP use uharfbuzz if available #3343
base: main
Are you sure you want to change the base?
Conversation
@khaledhosny Any help here is appreciated. |
For faster drawing. However, I'm hitting a lot of node-count-differs errors. I have not tracked the cause down yet. I thought this line might be: https://github.com/harfbuzz/harfbuzz/blob/df635ab78ae1d397396e3a0fe688b8a4674b2e8a/src/hb-draw.hh#L148 But disabling it in uharfbuzz didn't help.
a97f6b4
to
78a2f45
Compare
Reopening to investigate so at least we know who's stealing a point from the outline! |
you need to explicitly emit the implied closing line otherwise a duplicate line segment at the end of a contour can get eaten up, see fonttools/Lib/fontTools/pens/pointPen.py Lines 231 to 247 in 9c154e8
|
and that's because SegmentToPointPen always pops the last node when path is closed and last == first fonttools/Lib/fontTools/pens/pointPen.py Lines 321 to 323 in 9c154e8
so to compensate and make sure points are roundtripped when going points => segments => points you need to make sure the segment representation has explicit closing lineTos |
Yeah but doing that in HB didn't seem to help my problem. I'll investigate more. |
The fonttools |
For faster drawing. However, I'm hitting a lot of
node-count-differs errors. I have not tracked the cause down yet.
I thought this line might be:
https://github.com/harfbuzz/harfbuzz/blob/df635ab78ae1d397396e3a0fe688b8a4674b2e8a/src/hb-draw.hh#L148
But disabling it in uharfbuzz didn't help.