From 59b27ca409ccf83dbbef1a1189f858bd905d8251 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 15 Dec 2006 21:39:50 +0100 Subject: [PATCH] Simplify script; remove (even more) ligatures instead of deleting the glyphs. --- buildscripts/pfx2ttf.fontforge | 38 ++++++++++++++-------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/buildscripts/pfx2ttf.fontforge b/buildscripts/pfx2ttf.fontforge index cdb82475f6..53b9de980e 100644 --- a/buildscripts/pfx2ttf.fontforge +++ b/buildscripts/pfx2ttf.fontforge @@ -4,30 +4,24 @@ Open($1); MergeKern($2) -# -# NCSB is broken as shipped by Fedora Core 6 -# it contains bogus ligatures TM and No in the AFM file. +# 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: # -# Remove the TM glyph - for want of better FF fix. -err = SelectIf("trademark"); -if ( err > 0 ) - Cut(); -elseif ( err == 0 ) - Print("Could not find \"trademark\" glyph"); -elseif ( err < 0 ) - Print("An error occurred while searching for the \"trademark\" glyph"); -endif - +# 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. -# Remove the No. glyph - for want of better FF fix. -err = SelectIf("afii61352"); -if ( err > 0 ) - Cut(); -elseif ( err == 0 ) - Print("Could not find \"numero\" glyph"); -elseif ( err < 0 ) - Print("An error occurred while searching for the \"numero\" glyph"); -endif +SelectIf("trademark", "trademark", \ + "afii61352", "afii61352", \ + "ij", "ij", \ + "IJ", "IJ"); +RemoveATT("Ligature", "*", "*"); Generate($3 + $fontname + ".otf"); +# EOF -- 2.39.5