Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions to build from source is missing #15

Open
santhoshtr opened this issue May 2, 2019 · 9 comments
Open

Instructions to build from source is missing #15

santhoshtr opened this issue May 2, 2019 · 9 comments

Comments

@santhoshtr
Copy link

Please provide instructions to build from source and associated scripts(example: Makefile or similar scripts)

@starryeyez024
Copy link
Member

starryeyez024 commented Jul 29, 2019

What are you trying to build? The TTF, OTF and webfont files are all included in this repo.

@santhoshtr
Copy link
Author

It is very common to build these files from source code for various purposes(Packaging for operating systems, learning purposes, when somebody want to modify and rebuild the font etc etc). Reproducibility is very very important.

@alexmyczko
Copy link

$ cd source_files/Display
$ fontmake -u */*.ufo -o otf

seems to do it.

@jeremymickel
Copy link

Thanks for this, @alexmyczko

Here's my process.

For TTF there are two steps. Build the compiled fonts, and then autohint those files:

$ cd source_files/
$ python build_ttf.py
$ cd source_files/fonts
$ python ttfPostProcess.py

For OTF there's one step:

$ cd source_files/
$ python build.py

@alexmyczko
Copy link

Thanks for this, @alexmyczko

Here's my process.

For TTF there are two steps. Build the compiled fonts, and then autohint those files:

$ cd source_files/
$ python build_ttf.py
$ cd source_files/fonts
$ python ttfPostProcess.py

For OTF there's one step:

$ cd source_files/
$ python build.py

Would fail for me with:

TTX Magic Time
-----------------------
/var/www/debian/fonts-redhat/RedHatFont-2.3.2/source_files/Display/Regular/master_ttf/RedHatDisplay-Regular.ttf
No flat kerning found
Traceback (most recent call last):
  File "build_ttf.py", line 382, in <module>
    main()
  File "build_ttf.py", line 375, in main
    processFont(file, d, flat_kerning)
  File "build_ttf.py", line 183, in processFont
    name = font['name'].getName(6, 1, 0, 0).string
AttributeError: 'NoneType' object has no attribute 'string'

@hbjydev
Copy link

hbjydev commented Jan 18, 2021

What about building the WOFF/WOFF2 files?

@alexmyczko
Copy link

for woff2 you can just use woff2_compress ?

@dmc5179
Copy link
Member

dmc5179 commented May 12, 2021

When I try to follow the build instructions and run the build-all.sh I get an error about not having ttfautohints. I'm building on a Fedora 33 system. I haven't been able to find how to install it on Fedora and it doesn't appear to be in the requirements.txt. For now I'm just using the build-vf.sh script. I need to get the woff and woff2 files into an air-gapped system. Is there a way to get ttfautohints on Fedora or make the woff/woff2 files another way? I'm not sure what files I would run the woff2_compress command on, the ttf files?

@alexmyczko
Copy link

@dmc5179 https://repology.org/project/ttfautohint/versions it's been around for years?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants