This fork modifies the shape of some characters to improve rendering, especially at smaller sizes. These changes go beyond what hinting alone can provide. Building the ttf fonts using the build
scripts automatically hint them. If you build the font manually, make sure to run it through the Hinter scripts, to get proper hinting.
After modifications to any of the glyphs in the Instances folder, make sure to run checkoutlinesUFO -e font.ufo
and psautohint font.ufo
on the font.ufo
file of the weight that was modified.
Source Code Pro is a set of OpenType fonts that have been designed to work well in user interface (UI) environments.
Open an issue or send a suggestion to Source Code's designer Paul D. Hunt, for consideration.
To build the binary font files from source, you need Python 3 along with the TTFAutoHint which needs to be placed in the Hinter directory of this repo, Adobe Font Development Kit for OpenType (AFDKO) and FontTools packages, which you can install with
pip3 install afdko
The key to building the OTF fonts is makeotf
, which is part of the AFDKO toolset.
Information and usage instructions can be found by executing makeotf -h
. The TTFs
are generated with the otf2ttf
and ttfcomponentizer
tools.
Commands to build the Regular style OTF font:
cd Roman/Instances/Regular/
makeotf -r -gs -omitMacNames
Commands to generate the Regular style TTF font:
otf2ttf SourceCodePro-Regular.otf
ttfcomponentizer SourceCodePro-Regular.ttf
For convenience, a shell script named build.sh is provided in the root directory. It builds all OTFs and TTFs into a directory called target/. It can be executed by typing:
./build.sh
or this on Windows:
build.cmd
To build the variable TTFs you must install fontmake using this command:
pip3 install fontmake
A shell script named buildVFs.sh is provided in the root directory. It generates four variable fonts (two CFF2-OTFs and two TTFs), and can be executed by typing:
./buildVFs.sh