Skip to content

Commit 4b26aa9

Browse files
committed
Add installation instructions to README
1 parent ba3683b commit 4b26aa9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,23 @@ fontinline
44
Make inline stroke paths from an outline font
55

66
Requirements (Debian/Ubuntu):
7-
sudo apt-get install python-shapely python-pygame python-fontforge
7+
sudo apt-get install git python-shapely python-fontforge cython build-essential python-dev
8+
sudo apt-get install python-pygame # Optional
9+
git clone http://github.com/hansent/python-poly2tri
10+
git clone http://github.com/sillsdev/fontinline
11+
cd python-poly2tri
12+
python setup.py build_ext -i
13+
ls p2t.so || echo Something failed, fix it and rebuild p2t
14+
cp p2t.so ../fontinline
15+
cd ../fontinline
16+
python extractpoints.py inputfont.ttf -o outputfont.ttf
17+
18+
Note that python-pygame is optional: if you never use the "--show-foo" options
19+
(where foo can be triangles, lines, dots or glyph) or their one-letter short
20+
versions (-t, -l, -d or -g), then the pygame dependency will not be required.
21+
If you try to use those options and pygame is not installed, you'll see
22+
"ImportError: No module named pygame". If that happens, simply run the
23+
"sudo apt-get install python-pygame" command and try again.
824

925
Code structure
1026
--------------

0 commit comments

Comments
 (0)