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

[view] Crash with --glyphs if given more than one glyph #4016

Closed
khaledhosny opened this issue Jan 8, 2023 · 1 comment
Closed

[view] Crash with --glyphs if given more than one glyph #4016

khaledhosny opened this issue Jan 8, 2023 · 1 comment

Comments

@khaledhosny
Copy link
Collaborator

The following works:

$ hb-shape Amiri-Regular.ttf a | hb-view --glyphs Amiri-Regular.ttf

and this also works:

$ hb-shape Amiri-Regular.ttf ا | hb-view --glyphs Amiri-Regular.ttf

But this crashes:

$ hb-shape Amiri-Regular.ttf ab | hb-view --glyphs Amiri-Regular.ttf
Segmentation fault: 11

And this asserts:

$ hb-shape Amiri-Regular.ttf اب | hb-view --glyphs Amiri-Regular.ttf
Assertion failed: (hb_glyph[i].cluster > hb_glyph[i-1].cluster), function hb_cairo_glyphs_from_buffer, file hb-cairo.cc, line 897.
Abort trap: 6
@khaledhosny
Copy link
Collaborator Author

Adding --no-clusters to hb-shape fixes the crash and the assert.

@behdad behdad closed this as completed in 5d94eb6 Jan 8, 2023
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

1 participant