Skip to content

Build failed from 0.212 sources with fontmake 3.10.2 #46

Closed

Description

@CoelacanthusHex

When I try to build https://github.com/TrionesType/zhuque/tree/v0.212 with fontmake 3.10.1, whatever fontmake is from pipx or from AUR, it will fail with the log below. I don't know if it's a bug in Zhuque Fangsong's source or in fontmake, but I don't have issues building other fonts, so I report it first.

Error log
ERROR:root:In 'src/ZhuqueFangsong.glyphspackage' -> 'master_ufo/ZhuqueFangsong-Regular.designspace': Compiling UFO failed: <features>:1832:35: Expected ';'
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/fontmake/font_project.py", line 519, in _iter_compile
    yield compile_func(ufo, debugFeatureFile=debugFeatureFile, **options)
          ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/ufo2ft/__init__.py", line 117, in compileOTF
    return OTFCompiler(**kwargs).compile(ufo)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/usr/lib/python3.13/site-packages/ufo2ft/_compilers/baseCompiler.py", line 65, in compile
    self.compileFeatures(ufo, font, glyphSet=glyphSet)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/ufo2ft/_compilers/baseCompiler.py", line 145, in compileFeatures
    otFont = featureCompiler.compile()
  File "/usr/lib/python3.13/site-packages/ufo2ft/featureCompiler.py", line 154, in compile
    self.buildTables()
    ~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/ufo2ft/featureCompiler.py", line 350, in buildTables
    addOpenTypeFeaturesFromString(self.ttFont, self.features, filename=path)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/builder.py", line 91, in addOpenTypeFeaturesFromString
    addOpenTypeFeatures(font, featurefile, tables=tables, debug=debug)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/builder.py", line 66, in addOpenTypeFeatures
    builder.build(tables=tables, debug=debug)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/builder.py", line 189, in build
    self.parseTree = Parser(self.file, self.glyphMap).parse()
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/parser.py", line 104, in parse
    statements.append(self.parse_feature_block_())
                      ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/parser.py", line 1802, in parse_feature_block_
    self.parse_block_(block, vertical, stylisticset, size_feature, cv_feature)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/parser.py", line 2032, in parse_block_
    statements.append(self.parse_featureNames_(stylisticset))
                      ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/parser.py", line 1831, in parse_featureNames_
    platformID, platEncID, langID, string = self.parse_name_()
                                            ~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/parser.py", line 1218, in parse_name_
    self.expect_symbol_(";")
    ~~~~~~~~~~~~~~~~~~~^^^^^
  File "/usr/lib/python3.13/site-packages/fontTools/feaLib/parser.py", line 2158, in expect_symbol_
    raise FeatureLibError("Expected '%s'" % symbol, self.cur_token_location_)
fontTools.feaLib.error.FeatureLibError: <features>:1832:35: Expected ';'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/fontmake/__main__.py", line 708, in main
    project.run_from_glyphs(inputs.glyphs_path, **args)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontmake/font_project.py", line 931, in run_from_glyphs
    self.run_from_designspace(
    ~~~~~~~~~~~~~~~~~~~~~~~~~^
        designspace,
        ^^^^^^^^^^^^
    ...<4 lines>...
        **kwargs,
        ^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/site-packages/fontmake/font_project.py", line 1197, in run_from_designspace
    self._run_from_designspace_static(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        designspace,
        ^^^^^^^^^^^^
    ...<8 lines>...
        **kwargs,
        ^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/site-packages/fontmake/font_project.py", line 1293, in _run_from_designspace_static
    self.run_from_ufos(
    ~~~~~~~~~~~~~~~~~~^
        ufos,
        ^^^^^
    ...<9 lines>...
        **kwargs,
        ^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/site-packages/fontmake/font_project.py", line 1382, in run_from_ufos
    self.build_otfs(ufos, cff_version=cff_version, inplace=inplace, **kwargs)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontmake/font_project.py", line 315, in build_otfs
    self.save_otfs(ufos, **kwargs)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontTools/misc/loggingTools.py", line 375, in wrapper
    return func(*args, **kwds)
  File "/usr/lib/python3.13/site-packages/fontmake/font_project.py", line 684, in save_otfs
    for font, ufo in zip(fonts, ufos):
                     ~~~^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fontmake/font_project.py", line 521, in _iter_compile
    raise FontmakeError("Compiling UFO failed", ufo.path) from e
fontmake.errors.FontmakeError: In 'src/ZhuqueFangsong.glyphspackage' -> 'master_ufo/ZhuqueFangsong-Regular.designspace': Compiling UFO failed: <features>:1832:35: Expected ';'

Activity

  1. celestialphineas commented on Aug 29, 2025

    @celestialphineas
    Contributor

    We are using Glyphs to directly export the font from the source file. The build script was broken possibly due to some compatibility issues. We welcome any suggestions or pull requests to fix this.

  2. oldherl commented on Apr 10, 2026

    @oldherl

    Would anyone report it to fontmake or Glyphs?

  3. celestialphineas commented on Jul 23, 2026

    @celestialphineas
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions