RedHatFont icon indicating copy to clipboard operation
RedHatFont copied to clipboard

Instructions to build from source is missing

Open santhoshtr opened this issue 5 years ago • 9 comments

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

santhoshtr avatar May 02 '19 06:05 santhoshtr

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

starryeyez024 avatar Jul 29 '19 01:07 starryeyez024

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.

santhoshtr avatar Aug 01 '19 03:08 santhoshtr

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

seems to do it.

alexmyczko avatar Oct 15 '19 14:10 alexmyczko

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

jeremymickel avatar Oct 15 '19 15:10 jeremymickel

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'

alexmyczko avatar Oct 16 '19 08:10 alexmyczko

What about building the WOFF/WOFF2 files?

hbjydev avatar Jan 18 '21 17:01 hbjydev

for woff2 you can just use woff2_compress ?

alexmyczko avatar Apr 15 '21 14:04 alexmyczko

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 avatar May 12 '21 01:05 dmc5179

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

alexmyczko avatar May 17 '23 19:05 alexmyczko