lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OTF generation bug?


From: Werner LEMBERG
Subject: OTF generation bug?
Date: Tue, 16 May 2006 08:33:23 +0200 (CEST)

[Executable based on sources from 21:09 26-Apr-2006-ML.]

George,

convert Ghostscript's c059016l.pfb with the attached script to an OTF
file:

  fontforge -script pfx2ttf.fontforge c059016l.pfb c059016l.afm c059016l.otf

Checking with FreeType's ftview, all advance width values are far too
big.

The reason for this seems to be that you set the `defaultWidthX' field
in the private dictionary (771 for the above font) without adjusting
the charstring widths.  For the `space' glyph in the above font, the
charstring width is 287 (this is the right advance width value, BTW),
giving an advance width of 771+287=1058 units, which is wrong.


    Werner
address@hidden@

Open($1);
MergeKern($2)

# 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

Generate($3 + $fontname + ".otf");


reply via email to

[Prev in Thread] Current Thread [Next in Thread]