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

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



Am Montag, den 26.11.2018, 09:19 -0800 schrieb James Godfrey-Kittle:
> > Yes, according to https://packages.debian.org/fontmake both Buster and
> Sid are packaging fontmake 1.6.1. I also tried with the latest version
> on Github (1.8.0) and got no error.

Well, then something is still odd on the Debian side. This is what I
get on an up-to-date sid system:

$ fontmake --version
1.6.1

$ fontmake -g FiraCode.glyphs
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'
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
125, in compile
    self.setupFeatures()
  File "/usr/lib/python3/dist-packages/ufo2ft/featureCompiler.py", line
225, in setupFeatures
    writer.write(self.ufo, featureFile, compiler=self)
  File "/usr/lib/python3/dist-
packages/ufo2ft/featureWriters/baseFeatureWriter.py", line 118, in
write
    return self._write()
  File "/usr/lib/python3/dist-
packages/ufo2ft/featureWriters/markFeatureWriter.py", line 691, in
_write
    features = self._makeFeatures()
  File "/usr/lib/python3/dist-
packages/ufo2ft/featureWriters/markFeatureWriter.py", line 640, in
_makeFeatures
    indicGlyphs = self._getIndicGlyphs()
  File "/usr/lib/python3/dist-
packages/ufo2ft/featureWriters/markFeatureWriter.py", line 677, in
_getIndicGlyphs
    gsub = self.compileGSUB()
  File "/usr/lib/python3/dist-
packages/ufo2ft/featureWriters/baseFeatureWriter.py", line 181, in
compileGSUB
    gsub = compileGSUB(self.context.feaFile, glyphOrder)
  File "/usr/lib/python3/dist-packages/ufo2ft/util.py", line 119, in
compileGSUB
    addOpenTypeFeatures(font, featureFile, tables={"GSUB"})
  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 132, in build
    table = self.makeTable(tag)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py",
line 540, in makeTable
    table.LookupList.Lookup = self.buildLookups_(tag)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py",
line 530, in buildLookups_
    return [l.build() for l in lookups]
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py",
line 530, in <listcomp>
    return [l.build() for l in lookups]
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py",
line 1265, in build
    self.setBacktrackCoverage_(prefix, st)
  File "/usr/lib/python3/dist-packages/fontTools/feaLib/builder.py",
line 1185, in setBacktrackCoverage_
    coverage = otl.buildCoverage(p, self.glyphMap)
  File "/usr/lib/python3/dist-packages/fontTools/otlLib/builder.py",
line 11, in buildCoverage
    self.glyphs = sorted(glyphs, key=glyphMap.__getitem__)
KeyError: ''

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: