The source files can be built with Fontmake, but there is a build script that automates the full process of building new fonts.
The build process requires you to open up a terminal and navigate to this project's root directory, AKA the first level (where this README file is located).
A Python virtual environment should be used to build this project, but it is not required.
If you are new to using Python virtual environments, first set up a virtual environment with:
virtualenv -p python3 venv
Here, venv
will be the name of the virtual environment and of the directory holding its dependencies. You need to activate it with:
source venv/bin/activate
To operate the scripts within this repo, install requirements with:
pip install --upgrade -r requirements.txt
The first time you run the build, you will need to give run permissions to the build scripts.
On the command line, navigate to the Git project root directory (cd Sofia-Sans
), and then give permissions to the shell scripts with:
chmod -R +x sources/scripts
The -R
applies your permission to each of the shell scripts in the directory, and the +x
adds execute permissions. Before you do this for shell scripts, you should probably take a look through their contents, to be sure they aren't doing anything bad. The ones in this repo simply build from the GlyphsApp sources and apply various fixes to the results.
You can then build sources by running shell scripts in sources/scripts/
from the root directory (Sofia-Sans
).
sources/scripts/build.sh
New fonts should be in the fonts directory if everything worked.