]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/pfx2ttf.fontforge
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / buildscripts / pfx2ttf.fontforge
1 #!@FONTFORGE@
2
3 Open($1);
4 MergeKern($2)
5
6
7 # The AFM files of `New Century Schoolbook' family as distributed within the
8 # urw-fonts-1.0.7pre41.tar.bz2 archive contain a bunch of ligatures which
9 # shouldn't be active by default:
10 #
11 #   T + M -> trademark
12 #   N + o -> afii61352
13 #   i + j -> ij
14 #   I + J -> IJ
15 #
16 # This font bundle is shipped by Fedora Core 6 and other GNU/Linux
17 # distributions; we simply remove those ligatures.
18
19 SelectIf("trademark", "trademark", \
20          "afii61352", "afii61352", \
21          "ij", "ij", \
22          "IJ", "IJ");
23 if (Strtol($version) < 20070501)
24   RemoveATT("Ligature", "*", "*");
25 else
26   RemovePosSub("*");
27 endif
28
29 Generate($3 + $fontname + ".otf");
30
31 # EOF