]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/pfx2ttf.fontforge
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / buildscripts / pfx2ttf.fontforge
index 6be20b5dcbf0cbfa40f6086738f3a140adb9018b..6428c7cf866ee9a9604c3e7265570a642084996b 100644 (file)
@@ -3,8 +3,29 @@
 Open($1);
 MergeKern($2)
 
-# Remove the No. glyph - for want of better FF fix.  
-Select("afii61352")
-Cut();
-Generate($3 + $fontname + ".ttf");
 
+# 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");
+if (Strtol($version) < 20070501)
+  RemoveATT("Ligature", "*", "*");
+else
+  RemovePosSub("*");
+endif
+
+Generate($3 + $fontname + ".otf");
+
+# EOF