]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/pfx2ttf.fontforge
Merge branch 'jneeman' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond into jneeman
[lilypond.git] / buildscripts / pfx2ttf.fontforge
1 #!@FONTFORGE@
2
3 Open($1);
4 MergeKern($2)
5
6
7
8 # NCSB is broken as shipped by Fedora Core 6
9 # it contains bogus ligatures TM and No in the AFM file.
10 #
11 # Remove the TM glyph - for want of better FF fix.  
12 err = SelectIf("trademark");
13 if ( err > 0 )
14    Cut();
15 elseif ( err == 0 )
16    Print("Could not find \"trademark\" glyph");
17 elseif ( err < 0 )
18    Print("An error occurred while searching for the \"trademark\" glyph");
19 endif
20
21
22 # Remove the No. glyph - for want of better FF fix.  
23 err = SelectIf("afii61352");
24 if ( err > 0 )
25    Cut();
26 elseif ( err == 0 )
27    Print("Could not find \"numero\" glyph");
28 elseif ( err < 0 )
29    Print("An error occurred while searching for the \"numero\" glyph");
30 endif
31
32 Generate($3 + $fontname + ".otf");
33