]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/pfx2ttf.fontforge
Compile fix.
[lilypond.git] / buildscripts / pfx2ttf.fontforge
index 6be20b5dcbf0cbfa40f6086738f3a140adb9018b..ec0f9a214abbb3ecb6f7f392e6e4da072fbe3bbf 100644 (file)
@@ -4,7 +4,14 @@ Open($1);
 MergeKern($2)
 
 # Remove the No. glyph - for want of better FF fix.  
-Select("afii61352")
-Cut();
-Generate($3 + $fontname + ".ttf");
+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
+
+Generate($3 + $fontname + ".otf");