Skip to content

Commit f02560b

Browse files
committed
adding build instructions and shell script
1 parent 0d2626b commit f02560b

File tree

2 files changed

+56
-3
lines changed

2 files changed

+56
-3
lines changed

README.md

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,51 @@
1-
#Source Code Pro
1+
Source Code Pro
2+
====
23

3-
##Overview
4+
Overview
5+
----
46
Source Code Pro is a set of OpenType fonts that have been designed to work well
57
in user interface (UI) environments. In addition to a functional OpenType font, this open
68
source project provides all of the source files that were used to build this OpenType font
79
by using the AFDKO makeotf tool.
810

9-
##Getting Involved
11+
Getting Involved
12+
----
1013
Send suggestions for changes to the Source Code OpenType font project maintainer,
1114
phunt@adobe.com, for consideration.
15+
16+
17+
Building
18+
====
19+
20+
Pre-built font binaries
21+
----
22+
The font binaries are not part of the source files. They are provided in the [Downloads](https://github.com/adobe/Source-Code-Pro/downloads) section.
23+
24+
25+
Requirements
26+
----
27+
28+
For building binary font files from source, installation of the [Adobe Font Development Kit for OpenType](http://www.adobe.com/devnet/opentype/afdko.html) (AFDKO) is necessary. The AFDKO tools are widely used for font development today, and are part of most font editor applications.
29+
30+
Building one font
31+
----
32+
33+
Key to building OTF or TTF fonts is `makeotf`, which is part of the AFDKO toolset.
34+
Information and usage instructions can be found by executing `makeotf -h`.
35+
36+
In this repository, all necessary files are in place for building the OTF and TTF fonts.
37+
For example, build a binary OTF font for the Regular style like this:
38+
39+
$ cd Roman/Regular/
40+
$ makeotf -r
41+
42+
43+
Building all fonts
44+
----
45+
46+
For convenience, a shell script named `build.sh` is provided in the root directory.
47+
It builds all OTFs and TTFs, and can be executed by typing:
48+
49+
$ ./build.sh
50+
51+

build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# Build OTFs
4+
for f in $(find . -name 'font.pfa')
5+
do
6+
makeotf -f $f -r
7+
done
8+
9+
# Build TTFs
10+
for f in $(find . -name 'font.ttf')
11+
do
12+
makeotf -f $f -gf GlyphOrderAndAliasDB_TT -newNameID4 -r
13+
done

0 commit comments

Comments
 (0)