« Return to Thread: BDF to Apple bitmap-only dfont, wrong line height

BDF to Apple bitmap-only dfont, wrong line height

by Tobia Conforto :: Rate this Message:

Reply to Author | View in Thread

Hello

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.

I downloaded the source bdf files from the website of the original  
designer: http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html

Then I opened 9x18.bdf into Fontforge and tried a simple Generate  
Fonts, saving the font as an Apple bitmap-only .dfont file (and "No  
outline font" selected.)

The process mostly succeeded, as I can now select the font in OS X  
applications, but the line height is not right.

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'm not sure about the  
terminology, I mean that the 9x18 glyphs are rendered at the bottom of  
a 9x22 grid.  I checked this by looking at some inverted text in the  
terminal.

In some OS X applications, such as Terminal, I can override the line  
height.  Setting this to 0.80 masks the problem, as ceil(22 * .8) =  
18, but it doesn't help with other apps.

Does anybody have any idea about what is causing this behaviour and  
how can I fix it?


Tobia

-------------------------------------------------------------------------
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

 « Return to Thread: BDF to Apple bitmap-only dfont, wrong line height