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

[makeotfexe] Only first ligature caret in first ligature is used. #556

Merged
merged 2 commits into from
Aug 15, 2018

Conversation

readroberts
Copy link
Contributor

[makeotfexe] Only first ligature caret in first ligature is used. Issue #155.

Fixed issue in feat.c/GDEF.c/featgram.g.
Note that the intent of the original code not only had a bug that allowed only one ligature entry to be written, but the intent was also in error. In reviewing the OpenType GDEF table spec and the feature file syntax, I see that a ligature glyph is NOT allowed to have more than one ligature glyph table. For example, 'ffi' cannot have two ligature glyph tables, each with a different format.

Note that the intent of the original code not only had a bug that allowed only one ligature entry to be written, but the intent was also in error. In reviewing the OpenType GDEF table spec and the feature file syntax, I see that a ligature glyph is NOT allowed to have more than one ligature glyph table. For example, 'ffi' cannot have two ligature glyph tables, each with a different format.

Fixed issue in feat.c/GDEF.c/featgram.g.

Fixed warnings from cppcheck in GDEF.c

Updated the makefile for the ANTLR grammar generator to run the clean-up tools cpplint and clang-format after generating the feat*.[ch] files.

Update the readme file to note the addition of the cpplint and clang-format commands, and how to install them. Also mentioned that a few style errors are not fixed by clang-format, and must be fixed by hand.

Changed argument name in makeotfexe_test.py to something other than a built-in name.

Updated the expected output files.

Fixes #155
@cjchapman cjchapman merged commit 222394c into develop Aug 15, 2018
@cjchapman cjchapman deleted the gdef-bug155 branch August 15, 2018 15:07
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

Successfully merging this pull request may close these issues.

3 participants