File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,23 @@ fontinline
4
4
Make inline stroke paths from an outline font
5
5
6
6
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.
8
24
9
25
Code structure
10
26
--------------
You can’t perform that action at this time.
0 commit comments