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

Segfault caused by reversesub in OpenType feature #2881

Open
sevmeyer opened this issue Sep 30, 2016 · 1 comment
Open

Segfault caused by reversesub in OpenType feature #2881

sevmeyer opened this issue Sep 30, 2016 · 1 comment

Comments

@sevmeyer
Copy link

sevmeyer commented Sep 30, 2016

FontForge 20160929
openSUSE 13.1

Merging a .fea file that contains a reversesub rule will cause a segmentation fault when trying to generate the font. This happens with the GUI and the python library.

A minimal example of such a feature file:

feature liga {
    reversesub A' B by C;
} liga;

For comparison, the file works fine with FontTools.

@sh1boot
Copy link

sh1boot commented Sep 14, 2023

This bug gets an honourable mention here:
https://blog.janestreet.com/commas-in-big-numbers-everywhere/

It turns out there’s been an open issue about this for years but “reversesub” rules are so infrequently used that it hasn’t been fixed. So I switched to using fontTools to add in my feature files, and it worked!

I was hoping to do away with that workaround because it's adding other complexity.

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

No branches or pull requests

3 participants