-
Notifications
You must be signed in to change notification settings - Fork 93
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
ValueError: The features already contain a table GDEF {...}
statement
#702
Comments
The expectation in fontmake is that .glyphs sources do not contain a |
I am afraid I am really not familiar enough with the code to provide a PR. However, if the presence of a GDEF table in a glyphs source file is unexpected, it might indeed be better to remove it (I know that it has been auto-generated). How is the best way to do this? Search for regex "table.*GDEF" and delete the entire line? |
|
Thank you @madig ! So, there is currently no way around explicitly creating intermediate UFO files? |
I haven't thought about it, but probably not.
|
This adds the "--no-generate-GDEF" command line parameter which sets the "generate_GDEF" variable which in turn is passed over to glyhpsLib invocations to determine whether to auto-generate a GDEF table or not. Fixes googlefonts#702.
@fabiangreffrath It seems to me ComicNeueAngular shouldn’t have a GDEF definition among other things. The kern feature lookups probably probably shouldn’t be there either as there is kerning data that they may be out of sync with. |
I suspect the .glyphs source might have been imported (either directly in Glyphs.app or using glyphsLib) from a designspace+master UFOs that was in turn generated via fontmake/glyphsLib (with generated_GDEF=True). Hence the reason it contains a GDEF definition in its features. @fabiangreffrath is that the case? |
@moyogo do you know if there's ever a need to write one's own GDEF definition in a .glyphs source file, instead of letting Glyphs.app/glyphsLib generate one for you? Do people actually want to be able to do that? |
Within Glyphs.app it makes more sense to use a custom GlyphsData.xml or change the glyph’s category. |
I usually just update the glyph categories to make sure they are what I want because both Glyphs and fontmake will then use those. |
Hi there,
fontmake currently fails to build the Angular variant of the comic-sans font from the glyphs-format into OTF files.
The font can be found here:
https://github.com/crozynski/comicneue
The command I use to compile the font is:
However, it fails with the following error message:
I mean, if the GDEF table is already there, fine, why not keep it? So, how do I set
generate_GDEF
to False or, alternatively, how do I tell fontmake to delete and re-generate the table and why isn't this done by default?This is on Debian testing/unstable with the following packages installed:
fontmake 2.1.4-1
python3-cu2qu 1.6.7-1+b2
python3-fontmath 0.6.0-1
python3-fonttools 4.16.1-1
python3-glyphslib 5.2.0+ds1-1
python3-ufo2ft 2.14.1-1
python3-ufolib2 0.8.0+dfsg1-1
ttfautohint 1.8.3-2+b1
The text was updated successfully, but these errors were encountered: