2013-04-29 22:49:25 +04:00
# Source Code Pro
2012-08-10 03:14:03 +04:00
2019-09-06 02:52:06 +03:00
[Source Code Pro ](http://adobe-fonts.github.io/source-code-pro/ )
is a set of OpenType fonts that have been designed to work well
in user interface (UI) environments.
2012-09-21 04:06:26 +04:00
2019-09-06 02:52:06 +03:00
## Getting involved
[Open an issue ](https://github.com/adobe-fonts/source-code-pro/issues ) or send a suggestion to Source Code's designer [Paul D. Hunt ](mailto:opensourcefonts@adobe.com?subject=[GitHub]%20Source%20Code%20Pro ), for consideration.
## Releases
2012-09-25 02:35:10 +04:00
2014-08-27 22:30:48 +04:00
* [Latest release ](../../releases/latest )
* [All releases ](../../releases )
2013-04-29 10:41:56 +04:00
2014-08-27 22:30:48 +04:00
## Building the fonts from source
2012-09-25 02:35:10 +04:00
2013-04-29 22:49:25 +04:00
### Requirements
2012-09-25 02:35:10 +04:00
2019-09-08 23:33:42 +03:00
To build the binary font files from source, you need Python 3 along with the
[Adobe Font Development Kit for OpenType ](https://github.com/adobe-type-tools/afdko/ ) (AFDKO) and
[FontTools ](https://github.com/fonttools/fonttools ) packages, which you can install with
```sh
pip3 install afdko fonttools
```
2012-09-25 02:35:10 +04:00
2013-04-29 22:49:25 +04:00
### Building one font
2012-09-25 02:35:10 +04:00
2019-09-06 02:52:06 +03:00
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.
2012-09-25 02:35:10 +04:00
2019-09-06 02:52:06 +03:00
Commands to build the Regular style OTF font:
2012-09-25 02:35:10 +04:00
2013-05-01 05:32:57 +04:00
```sh
2019-09-08 23:33:42 +03:00
cd Roman/Instances/Regular/
makeotf -r -gs -omitMacNames
2019-09-06 02:52:06 +03:00
```
Commands to generate the Regular style TTF font:
```sh
2019-09-08 23:33:42 +03:00
otf2ttf SourceCodePro-Regular.otf
ttfcomponentizer SourceCodePro-Regular.ttf
2013-05-01 05:32:57 +04:00
```
2012-09-25 02:35:10 +04:00
2019-09-06 02:52:06 +03:00
### Building all non-variable fonts
2012-09-25 02:35:10 +04:00
2019-09-06 02:52:06 +03:00
For convenience, a shell script named **build.sh** is provided in the root directory.
2019-09-08 23:33:42 +03:00
It builds all OTFs and TTFs into a directory called **target/** . It can be executed by typing:
2012-09-25 02:35:10 +04:00
2013-05-01 05:32:57 +04:00
```sh
2019-09-08 23:33:42 +03:00
./build.sh
2013-05-01 05:32:57 +04:00
```
2012-09-25 02:35:10 +04:00
2015-08-31 21:16:10 +03:00
or this on Windows:
```sh
2019-09-08 23:33:42 +03:00
build.cmd
2015-08-31 21:16:10 +03:00
```
2019-09-06 02:52:06 +03:00
### Building the variable fonts
To build the variable TTFs you must install **fontmake** using this command:
2012-09-25 02:35:10 +04:00
2019-09-06 02:52:06 +03:00
```sh
2019-09-08 23:33:42 +03:00
pip3 install fontmake
2019-09-06 02:52:06 +03:00
```
2012-12-07 08:09:16 +04:00
2019-09-06 02:52:06 +03:00
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:
2012-09-27 22:27:42 +04:00
2019-09-06 02:52:06 +03:00
```sh
2019-09-08 23:33:42 +03:00
./buildVFs.sh
2019-09-06 02:52:06 +03:00
```