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