-
Notifications
You must be signed in to change notification settings - Fork 25
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
coretext shaper causes segfault on "sparse" font #83
Comments
Beautiful. I had designed HB to be used that way :). Does the crash reproduce with hb-view? |
It's pretty fantastic indeed :)
It fails gracefully like this:
So no, it doesn't crash. |
hb_shape_full() takes a NULL-terminated array (the length of the array is not passed separately) and would otherwise try to access random memory and crash if all shapers failed. Fixes #83
I have a font that only has GPOS, cmap, head, maxp and post tables, which works perfectly fine for the default (ot) shaper, but crashes hard when specifying the coretext shaper on macOS.
Relates to justvanrossum/fontgoggles#144
(FontGoggles compiles this kind of minimal fonts on the fly to do shaping for UFO sources: metrics come from the source via hb callbacks, and outlines are directly drawn from the sources, too.)
I'll open a PR that reproduces the problem.
The text was updated successfully, but these errors were encountered: