RedHatOfficial / RedHatFont

Red Hat's Open Source Fonts - Red Hat Display and Red Hat Text
SIL Open Font License 1.1
479 stars 55 forks source link

Instructions to build from source is missing #15

Open santhoshtr opened 5 years ago

santhoshtr commented 5 years ago

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

starryeyez024 commented 5 years ago

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

santhoshtr commented 5 years ago

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 commented 4 years ago
$ cd source_files/Display
$ fontmake -u */*.ufo -o otf

seems to do it.

jeremymickel commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

What about building the WOFF/WOFF2 files?

alexmyczko commented 3 years ago

for woff2 you can just use woff2_compress ?

dmc5179 commented 3 years ago

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 commented 1 year ago

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