LSR: Update.
[lilypond.git] / buildscripts / pfx2ttf.fontforge
blob6428c7cf866ee9a9604c3e7265570a642084996b
1 #!@FONTFORGE@
3 Open($1);
4 MergeKern($2)
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:
11 #   T + M -> trademark
12 #   N + o -> afii61352
13 #   i + j -> ij
14 #   I + J -> IJ
16 # This font bundle is shipped by Fedora Core 6 and other GNU/Linux
17 # distributions; we simply remove those ligatures.
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
29 Generate($3 + $fontname + ".otf");
31 # EOF