Closed laerm0 closed 5 years ago
try to make that condition like
if "[" in layer.name or "]" in layer.name:
we should really demote that error to a warning and skip those invalid layers /cc @madig
also put some print() statements to see what your layers names look like. I believe they must only contain one integer number within square backets (whitespace is ignored). No commas.
In Glyphs, they can contain more values. And the second one is kind of taken into account. But it is not very useful as you can’t say "first axis > XX && second axis < YY".
So both values are min values?
Both values are min or max depending if it is a bracket or reverse bracket.
Are the values in an AND or OR relationship?
That is an ‘and’.
This is closed for my needs, but feel free to keep talking because it's good info. :)
OpenSans-Italic.glyphs
has bracket layers stuck somewhere inside it.fontmake -g OpenSans-Italic.glyphs -o ufo
returns@m4rc1e had given me the following short script that would clean this up but no luck here.
Any thoughts from him or a fellow Glyphs driver out there?