[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#900777: fontmake: fails to rebuild fonts-firacode from its glyphs source



Hi,

Sorry for the late reply, here was me testing to build Fira Code after bumping fontmake:

INFO:fontmake.font_project:Building master UFOs and designspace from Glyphs source
INFO:glyphsLib.classes:Parsing "FiraCode.glyphs" file into <GSFont>
INFO:fontmake.font_project:Building OTF for FiraCode-Regular
INFO:ufo2ft:Pre-processing glyphs
INFO:ufo2ft.filters:Running DecomposeComponentsFilter on FiraCode-Regular
INFO:ufo2ft.filters:Running RemoveOverlapsFilter on FiraCode-Regular
INFO:ufo2ft:Building OpenType tables
INFO:ufo2ft.outlineCompiler:The copyright was normalized for storage in the CFF table and consequently some characters were dropped: 'Copyright Copyright 2015 by Nikita Prokopov'
ERROR:ufo2ft.featureCompiler:Compilation failed! Inspect temporary file: '/tmp/tmpyyyj2ern'
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 548, in run_from_glyphs
    self.run_from_designspace(designspace_path, **kwargs)
  File "/usr/lib/python3/dist-packages/fontmake/font_project.py", line 623, in run_from_designspace
    **kwargs)
  File "/usr/lib/python3/dist-packages/fontmake/font_project.py", line 654, in run_from_ufos
    self.build_otfs(ufos, **kwargs)
  File "/usr/lib/python3/dist-packages/fontmake/font_project.py", line 232, in build_otfs
    self.save_otfs(ufos, **kwargs)
  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 395, in save_otfs
    for font, ufo in zip(fonts, ufos):
  File "/usr/lib/python3/dist-packages/fontmake/font_project.py", line 280, in _iter_compile
    yield compile_func(ufo, **options)
  File "/usr/lib/python3/dist-packages/ufo2ft/__init__.py", line 89, in compileOTF
    featureCompilerClass=featureCompilerClass,
  File "/usr/lib/python3/dist-packages/ufo2ft/__init__.py", line 230, in compileFeatures
    return featureCompiler.compile()
  File "/usr/lib/python3/dist-packages/ufo2ft/featureCompiler.py", line 131, in compile
    self.buildTables()
  File "/usr/lib/python3/dist-packages/ufo2ft/featureCompiler.py", line 252, in buildTables
    self.ttFont, self.features, filename=path
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py", line 31, in addOpenTypeFeaturesFromString
    addOpenTypeFeatures(font, featurefile, tables=tables)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py", line 22, in addOpenTypeFeatures
    builder.build(tables=tables)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py", line 109, in build
    self.parseTree.build(self)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/ast.py", line 260, in build
    s.build(builder)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/ast.py", line 289, in build
    Block.build(self, builder)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/ast.py", line 260, in build
    s.build(builder)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/ast.py", line 328, in build
    Block.build(self, builder)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/ast.py", line 260, in build
    s.build(builder)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/ast.py", line 850, in build
    builder.add_mark_base_pos(self.location, self.base.glyphSet(), self.marks)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py", line 973, in add_mark_base_pos
    self.add_marks_(location, builder, marks)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py", line 969, in add_marks_
    location)
fontTools.feaLib.error.FeatureLibError: <features>:1578:9: Glyph psili cannot be in both @MC_top and @MC_topleft


On Fri, Nov 9, 2018 at 6:41 PM Fabian Greffrath <fabian@debian.org> wrote:
Hi,

Yao Wei wrote:
> While newer version is ready, I found that building Fira Code needs the
> dependencies under fontmake to be bumped, hence this bug is kept
> unresolved.

could you please tell me what exactly needs to be updated in order to
build fonts-firacode with fontmake?

Thanks!

 - Fabian



Reply to: