2013-04-29 22:01:23 +02:00
# Source Sans Pro
2012-08-10 01:13:19 +02:00
2021-02-16 05:43:06 +01:00
[Source Sans Pro ](http://adobe-fonts.github.io/source-sans/ )
2019-01-12 01:28:58 +01:00
is a set of OpenType fonts that have been designed to work well
2018-10-30 19:06:00 +01:00
in user interface (UI) environments.
2012-08-11 01:01:47 +02:00
2018-10-30 23:42:48 +01:00
## Getting involved
2021-02-16 05:43:06 +01:00
[Open an issue ](https://github.com/adobe-fonts/source-sans/issues ) or send a suggestion to Source Sans' designer [Paul D. Hunt ](mailto:opensourcefonts@adobe.com?subject=[GitHub]%20Source%20Sans%20Pro ), for consideration.
2018-10-30 23:42:48 +01:00
## Releases
2013-04-09 02:34:59 +02:00
2014-08-26 23:02:46 +02:00
* [Latest release ](../../releases/latest )
* [All releases ](../../releases )
2013-04-29 08:42:18 +02:00
2014-08-26 22:53:00 +02:00
## Building the fonts from source
2013-04-09 02:34:59 +02:00
2013-04-29 22:01:23 +02:00
### Requirements
2013-04-09 02:34:59 +02:00
2013-04-29 22:01:23 +02:00
To build the binary font files from source, you need to have installed the
2018-10-30 19:06:00 +01:00
[Adobe Font Development Kit for OpenType ](https://github.com/adobe-type-tools/afdko/ ) (AFDKO).
2013-04-09 02:34:59 +02:00
2013-04-29 22:01:23 +02:00
### Building one font
2013-04-09 02:34:59 +02:00
2018-10-30 19:06:00 +01: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.
2013-04-09 02:34:59 +02:00
2018-10-30 19:06:00 +01:00
Commands to build the Regular style OTF font:
2013-04-09 02:34:59 +02:00
2013-05-02 01:14:04 +02:00
```sh
2018-10-30 19:06:00 +01:00
$ cd Roman/Instances/Regular/
$ makeotf -r -gs -omitMacNames
2013-05-02 01:14:04 +02:00
```
2013-04-09 02:34:59 +02:00
2018-10-30 19:06:00 +01:00
Commands to generate the Regular style TTF font:
2013-04-09 02:34:59 +02:00
2018-10-30 19:06:00 +01:00
```sh
$ otf2ttf SourceSansPro-Regular.otf
$ ttfcomponentizer SourceSansPro-Regular.ttf
```
### Building all non-variable fonts
For convenience, a shell script named **build.sh** is provided in the root directory.
2013-04-09 02:34:59 +02:00
It builds all OTFs and TTFs, and can be executed by typing:
2013-05-02 01:14:04 +02:00
```sh
$ ./build.sh
```
2013-04-09 02:34:59 +02:00
2015-09-16 02:59:44 +02:00
or this on Windows:
```sh
> build.cmd
```
2018-10-30 19:06:00 +01:00
### Building the variable fonts
2019-03-22 02:49:23 +01:00
To build the variable TTFs you must install **fontmake** using this command:
2018-10-30 19:06:00 +01:00
```sh
2019-03-22 02:49:23 +01:00
$ pip install fontmake
2018-10-30 19:06:00 +01: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:
```sh
$ ./buildVFs.sh
```
2015-10-07 02:24:52 +02:00
### Building with `make`
If you want to build directly from masters instead of the instances stored in
the repository, or to avoid building all files repetitively, run:
```sh
$ make
```
and it will get everything up to date. To generate only the font.ufo instances
from the masters, run:
```sh
$ make instances
```
_Note: because font.ufo instances are stored in the repository, you may have to
delete them first from your working tree before building from masters; see
below._
To clean up `makeotf` 's defaults and other log files, run:
```sh
$ make clean
```
or to remove all build artefacts, including target font binaries:
```sh
$ make cleanall
```
Because font.ufo instances are committed into the repository, they are not
removed on `make clean` . If that is necessary, run:
```sh
$ make cleaninstances
```