glyphsLib: Intermediate/brace layers are not supported anymore

https://github.com/emmamarichal/league-spartan

fontmake.errors.FontmakeError: In 'LeagueSpartan.glyphs' -> 'master_ufo/LeagueSpartan.designspace': Generating fonts from Designspace failed: '{500}'

  • font is Glyphs version2
  • has intermediate layer at 500 for /e and /a.ss01
  • ufo2ft creates a source master at 500 in design space, which has the same name as the origin master at 200, which creates a conflict.

I don’t know at which commit exactly the change occurred though. Maybe it’s not even glyphsLib the issue.

  <sources>
    <source filename="LeagueSpartan-ExtraLight.ufo" name="League Spartan ExtraLight" familyname="League Spartan" stylename="ExtraLight">
      <lib copy="1"/>
      <groups copy="1"/>
      <features copy="1"/>
      <info copy="1"/>
      <location>
        <dimension name="Weight" xvalue="200"/>
      </location>
    </source>
    <source filename="LeagueSpartan-ExtraLight.ufo" name="League Spartan ExtraLight {500}" layer="{500}">
      <location>
        <dimension name="Weight" xvalue="500"/>
      </location>
    </source>

sources.zip

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 34 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Sorry. I shall look at this today.

Hello, I wanted to do a small “tutorial” to solve an issue I met.

  1. The original file was like this Capture d’écran 2022-10-21 à 17 42 33
  2. To get the good way of writing this, I did “+” to add them as Alternates layers Capture d’écran 2022-10-21 à 17 42 41
  3. At the end, we get this, that is the good structure to have. Capture d’écran 2022-10-21 à 17 42 55

But it didn’t export properly and I got this error: TypeError: '<=' not supported between instances of 'int' and 'str'

To avoid that:

  • Save the drawing of your layers somewhere
  1. Start with your 2 masters Capture d’écran 2022-10-21 à 17 49 24
  2. Add a layer with “+” Capture d’écran 2022-10-21 à 17 49 31
  3. Right clic on it, select “Alternate” Capture d’écran 2022-10-21 à 17 49 37
  4. Fill with your values Capture d’écran 2022-10-21 à 17 49 47
  5. Then you have the same result, but with another process, and it works! Capture d’écran 2022-10-21 à 17 50 03

I hope it will help if someone has the same kind of issue!

This issue is blocking the CI builds in multiple repositories, I have complains from several designers.