> I'm trying to convert my favorite Linux programming/console font
> (misc fixed 9x18) to a format usable by native OS X applications,
> but I'm running into a problem with the line height of the converted
> font.
>
> The original font is a monospaced 9x18 bitmap, with a line-height of
> exactly 18 pixels. But the generated dfont seems to be rendered by
> all programs with 4px of additional ascent.
I tried, unsuccessfully, to get at the root of the problem by
comparing BDF and SFD files.
After that I generated two compiled versions (Apple bitmap only dfont)
one that works, but is a subset of Latin-1, and one that covers all
Latin-1 codepoints but exhibits the line-height problem.
I compared the values inside the font, with the help of a hex editor
and the TTF reference[1], but I still can't figure out what's going
wrong.
Both files have a single bitmap stroke, 18. Both files have a
hori(zontal) sbitLineMetrics (in table 'bloc') with ascender=14,
descender=-4, maxBeforeBL=14, and minAfterBL=-4. 14 minus -4 is
clearly equal to 18, so I really can't see where the 24 line-height is
coming from.
You can find the two compiled fonts here[2], along with my analysis of
the 'bloc' table.
I will be grateful for any help in solving this problem, or in finding
a workaround.
Tobia
[1]
http://developer.apple.com/textfonts/TTRefMan/[2]
http://gruppo4.com/~tobia/osx-font-problem.zip-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Fontforge-users mailing list
Fontforge-users@...
https://lists.sourceforge.net/lists/listinfo/fontforge-users