Skip to content

building from source broken #20

@shinenelson

Description

@shinenelson

the build.sh script has multiple issues while building on a Linux machine.

  1. fontmake cannot autohint (tested with both python3.5 and python2.7).
Traceback (most recent call last):
  File "/home/shine/dev/git/mozilla/fonts/zilla-slab/env/3.5/bin/fontmake", line 11, in <module>
    sys.exit(main())
  File "/home/shine/dev/git/mozilla/fonts/zilla-slab/env/3.5/lib/python3.5/site-packages/fontmake/__main__.py", line 195, in main
    ufo_paths, is_instance=args.pop('masters_as_instances'), **args)
  File "/home/shine/dev/git/mozilla/fonts/zilla-slab/env/3.5/lib/python3.5/site-packages/fontmake/font_project.py", line 481, in run_from_ufos
    **kwargs)
  File "/home/shine/dev/git/mozilla/fonts/zilla-slab/env/3.5/lib/python3.5/site-packages/fontmake/font_project.py", line 193, in build_ttfs
    self.save_otfs(ufos, ttf=True, **kwargs)
  File "/home/shine/dev/git/mozilla/fonts/zilla-slab/env/3.5/lib/python3.5/site-packages/fontTools/misc/loggingTools.py", line 372, in wrapper
    return func(*args, **kwds)
  File "/home/shine/dev/git/mozilla/fonts/zilla-slab/env/3.5/lib/python3.5/site-packages/fontmake/font_project.py", line 320, in save_otfs
    ttfautohint(otf_path, hinted_otf_path, args=autohint)
  File "/home/shine/dev/git/mozilla/fonts/zilla-slab/env/3.5/lib/python3.5/site-packages/fontmake/ttfautohint.py", line 32, in ttfautohint
    return subprocess.call(arg_list + args.split() + file_args)
  File "/usr/lib/python3.5/subprocess.py", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ttfautohint'

I managed to build the fonts without autohint.

  1. sfnt2woff and woff2_compress are dependencies that are not mentioned in the requirements.txt. Neither are the steps to install the dependencies are not mentioned in the README.md file.
    I had to install the woff-tools package to get the sfnt2woff command working. I also compiled the woff2 library from source to get the woff2_compress command working.

But these are tech-y stuff that a normal user cannot comprehend.

  • We should look at why fontmake can't autohint. If it is an upstream issue, we should remove the -a flag from the fontmake command so that the script doesn't break.
  • If we're going to support WOFF/WOFF2, we should let users know how to get the dependencies installed, in the README.md file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions