Debian Codegraph @

genfonts.sh

raw symbols SCIP
1 #!/bin/bash
2
3 #####################################################################
4 #
5 # This file is part of Old Standard font family
6 # (http://www.thessalonica.org.ru/en/oldstandard.html) and is
7 # Copyright (C) 2006-2011 Alexey Kryukov <[email protected]>.
8 #
9 # This Font Software is licensed under the SIL Open Font License,
10 # Version 1.1.
11 #
12 # You should have received a copy of the license along with this Font
13 # Software. If this is not the case, go to (http://scripts.sil.org/OFL)
14 # for all the details including a FAQ.
15 #
16 #####################################################################/
17
18 ZIP="zip -DrX"
19 PACK_NAME=oldstandard
20 DOCS="OFL.txt OFL-FAQ.txt FONTLOG.txt"
21 VERSION="2.2"
22
23 fontforge -script ost-generate.py
24
25 for f in *.ttf; do
26 BASENAME=${f%.ttf}
27 wine cachett.exe $f ${BASENAME}_hdmx.ttf OldStandard.cfg
28 mv ${BASENAME}_hdmx.ttf $BASENAME.ttf
29 grcompiler -w3521 $BASENAME.gdl $BASENAME.ttf
30 mv ${BASENAME}_gr.ttf $BASENAME.ttf
31 done
32
33 rm -f *.zip
34
35 $ZIP $PACK_NAME-$VERSION.ttf.zip *.ttf $DOCS
36 $ZIP $PACK_NAME-$VERSION.woff.zip *.woff $DOCS
37 $ZIP $PACK_NAME-$VERSION.otf.zip *.otf $DOCS
38 $ZIP $PACK_NAME-$VERSION.src.zip genfonts.sh ost-generate.py *.gdl *.cfg *metadata.xml *.sfd $DOCS