]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/pfx2ttf.fontforge
Sixth tutorial rewrite.
[lilypond.git] / buildscripts / pfx2ttf.fontforge
index 914d1d1e7cd9182d5d86026b939fcd50caff40f0..53b9de980e4e4cf2dce67dfdb7ade5f0bb0d5fd4 100644 (file)
@@ -2,5 +2,26 @@
 
 Open($1);
 MergeKern($2)
-Generate($3);
 
+
+# The AFM files of `New Century Schoolbook' family as distributed within the
+# urw-fonts-1.0.7pre41.tar.bz2 archive contain a bunch of ligatures which
+# shouldn't be active by default:
+#
+#   T + M -> trademark
+#   N + o -> afii61352
+#   i + j -> ij
+#   I + J -> IJ
+#
+# This font bundle is shipped by Fedora Core 6 and other GNU/Linux
+# distributions; we simply remove those ligatures.
+
+SelectIf("trademark", "trademark", \
+         "afii61352", "afii61352", \
+         "ij", "ij", \
+         "IJ", "IJ");
+RemoveATT("Ligature", "*", "*");
+
+Generate($3 + $fontname + ".otf");
+
+# EOF