Open santhoshtr opened 5 years ago
What are you trying to build? The TTF, OTF and webfont files are all included in this repo.
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.
$ cd source_files/Display
$ fontmake -u */*.ufo -o otf
seems to do it.
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
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'
What about building the WOFF/WOFF2 files?
for woff2 you can just use woff2_compress ?
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?
@dmc5179 https://repology.org/project/ttfautohint/versions it's been around for years?
Please provide instructions to build from source and associated scripts(example: Makefile or similar scripts)