From 468e0b97f6928a4ab05e52375781394f09feefe6 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 14 Dec 2006 13:06:25 +0100 Subject: [PATCH] strip Trademark from NCSB too. --- buildscripts/pfx2ttf.fontforge | 16 ++++++++++++++++ input/regression/font-bogus-ligature.ly | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 input/regression/font-bogus-ligature.ly diff --git a/buildscripts/pfx2ttf.fontforge b/buildscripts/pfx2ttf.fontforge index ec0f9a214a..aac582befc 100644 --- a/buildscripts/pfx2ttf.fontforge +++ b/buildscripts/pfx2ttf.fontforge @@ -3,6 +3,22 @@ Open($1); MergeKern($2) + +# +# NCSB is broken as shipped by Fedora Core 6 +# it contains bogus ligatures TM and No in the AFM file. +# +# 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 \"numero\" glyph"); +endif + + # Remove the No. glyph - for want of better FF fix. err = SelectIf("afii61352"); if ( err > 0 ) diff --git a/input/regression/font-bogus-ligature.ly b/input/regression/font-bogus-ligature.ly new file mode 100644 index 0000000000..ec7399e374 --- /dev/null +++ b/input/regression/font-bogus-ligature.ly @@ -0,0 +1,16 @@ +\header +{ + texidoc = "TM and No should not be changed into trademark/number symbols. +This may happen with incorrect font versions. +" +} + +\version "2.10.0" + +\paper { + ragged-right = ##T +} + +{ + c4^"November WHITMAN" +} -- 2.39.2