RedHatOfficial / Overpass

Overpass open source web font family — Sponsored by Red Hat
http://overpassfont.org
SIL Open Font License 1.1
2k stars 89 forks source link

fails to build from source using fontmake #68

Open alexmyczko opened 5 years ago

alexmyczko commented 5 years ago

would be great!

trying to use fontmake results in:

INFO:fontmake.font_project:Building master UFOs and designspace from Glyphs source
INFO:glyphsLib.classes:Parsing "overpass.glyphs" file into <GSFont>
Traceback (most recent call last):
  File "/usr/bin/fontmake", line 11, in <module>
    load_entry_point('fontmake==1.6.1', 'console_scripts', 'fontmake')()
  File "/usr/lib/python3/dist-packages/fontmake/__main__.py", line 248, in main
    project.run_from_glyphs(glyphs_path, **args)
  File "/usr/lib/python3/dist-packages/fontmake/font_project.py", line 547, in run_from_glyphs
    mti_source=mti_source)
  File "/usr/lib/python3/dist-packages/fontTools/misc/loggingTools.py", line 372, in wrapper
    return func(*args, **kwds)
  File "/usr/lib/python3/dist-packages/fontmake/font_project.py", line 120, in build_master_ufos
    font, family_name=family_name, instance_dir=instance_dir)
  File "/usr/lib/python3/dist-packages/glyphsLib/builder/__init__.py", line 90, in to_designspace
    return builder.designspace
  File "/usr/lib/python3/dist-packages/glyphsLib/builder/builders.py", line 201, in designspace
    ufos = list(self.masters)  # Make sure that the UFOs are built
  File "/usr/lib/python3/dist-packages/glyphsLib/builder/builders.py", line 139, in masters
    self.to_ufo_font_attributes(self.family_name)
  File "/usr/lib/python3/dist-packages/glyphsLib/builder/font.py", line 84, in to_ufo_font_attributes
    self.to_ufo_custom_params(ufo, font)
  File "/usr/lib/python3/dist-packages/glyphsLib/builder/custom_params.py", line 619, in to_ufo_custom_params
    handler.to_ufo(glyphs_proxy, ufo_proxy)
  File "/usr/lib/python3/dist-packages/glyphsLib/builder/custom_params.py", line 205, in to_ufo
    glyphs_value = self._read_from_glyphs(glyphs)
  File "/usr/lib/python3/dist-packages/glyphsLib/builder/custom_params.py", line 218, in _read_from_glyphs
    small_name_value = getter(self.glyphs_name)
  File "/usr/lib/python3/dist-packages/glyphsLib/builder/custom_params.py", line 101, in get_custom_value
    raise RuntimeError('More than one value for this customParameter: {}'.format(key))
RuntimeError: More than one value for this customParameter: description
alexmyczko commented 5 years ago

I also fail to build the sources of version 2.0 converting them with wine vfb2ufo.exe first...

madig commented 4 years ago

The problem is that there are two description custom parameters in the "Font" tab. I think in Glyphs, the last one wins, so I suggest you remove the first.

Bildschirmfoto 2019-11-23 um 12 36 46

alexmyczko commented 1 year ago

same but not the same alternative fonts https://github.com/sammdot/roadgeek-fonts

3.0.5 still has the same problem:

$ fontmake -i -o otf -g overpass.glyphs
INFO:fontmake.font_project:Building master UFOs and designspace from Glyphs source
INFO:glyphsLib.classes:Parsing "overpass.glyphs" file into <GSFont>
WARNING:glyphsLib.builder.builders.UFOBuilder:Non-existent glyph class public.kern1.quotesingle found in kerning rules.
WARNING:glyphsLib.builder.builders.UFOBuilder:Non-existent glyph class public.kern1.quotesingle found in kerning rules.
WARNING:glyphsLib.builder.builders.UFOBuilder:Non-existent glyph class public.kern1.quotesingle found in kerning rules.
WARNING:glyphsLib.builder.builders.UFOBuilder:Non-existent glyph class public.kern1.quotesingle found in kerning rules.
INFO:fontmake.font_project:Interpolating master UFOs from designspace
INFO:fontmake.font_project:Generating instance UFO for "Overpass Thin"
INFO:fontmake.font_project:Generating instance UFO for "Overpass ExtraLight"
fontmake: Error: In 'overpass.glyphs' -> 'master_ufo/Overpass.designspace': Interpolating instance 'ExtraLight' failed.: Failed to generate instance of glyph 'paragraph': list index out of range. (Note: the most common cause for an error here is that the glyph outlines are not point-for-point compatible or have the same starting point or are in the same order in all masters.)
madig commented 1 year ago

I guess someone needs to fix the paragraph glyph?