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

Re: BDF to Apple bitmap-only dfont, wrong line height

by George Williams :: Rate this Message:

Reply to Author | View in Thread

Sorry to be so long in getting back to you. I'm afraid I can't be much
help.

On Wed, 2008-01-30 at 04:56, Tobia Conforto wrote:
> It would appear that in the original font all non-ASCII glyphs have  
> something stuck on them (a bounding box value, or something to that  
> effect?) that pushes the line-height to 24px.  It seems to me that it  
> can be recomputed, and thus fixed, by simply touching the glyphs.
If the bounding box is too big, then saving to a dfont will call a
routine to crop any extraneous whitespace. I can't imagine what a manual
touch would do that this would not. However...
  Doing a "Select All" in the fontview and then
  Transform -> Move 0,0 [OK]
  should mark every bitmap glyph as touched.
On Sun, 2008-02-03 at 08:34, Tobia Conforto wrote:
> 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.
Nor can I. Apple's bitmap font format isn't really documented.

As far as I can tell, the metrics for the glyphs themselves are correct
with an 18pixel height.


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