]> git.donarmstrong.com Git - lilypond.git/blob - scripts/auxiliar/pfx2ttf-mono.fontforge
7b804949badad0049fa469f8b095fd11a94f0565
[lilypond.git] / scripts / auxiliar / pfx2ttf-mono.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 # Monospace font shouldn't have these ligature.
18 #
19 #   f + i -> fi
20 #   f + l -> fl
21
22 SelectIf("trademark", "trademark", \
23          "afii61352", "afii61352", \
24          "ij", "ij", \
25          "IJ", "IJ", \
26          "fi", "fi", \
27          "fl", "fl");
28 if (Strtol($version) < 20070501)
29   RemoveATT("Ligature", "*", "*");
30 else
31   RemovePosSub("*");
32 endif
33
34 Generate($3 + $fontname + ".otf");
35
36 # EOF