[Bug 30873] BMFont crashes on visualise option or save bitmap font as

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jul 18 16:29:28 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=30873

--- Comment #3 from Joachim Durchholz <toolforger at durchholz.org> 2012-07-18 16:29:28 CDT ---
Okay, the workaround is really simple:
Add a line for char=32, set x and y to the top-left coordinate of an unused
area on the bitmap (i.e. on a 128x128 bitmap, I'd set this to x=120, y=120),
set width to 1, height to 0, and use an xadvance value that gives a
"reasonable" width for the blank spaces.
Repeat for 160 if you need that.
Increase "chars count" if the library you're using insists that that value is
consistent with the actual number of "char" lines. (For jme3, I know it does
not.)

The downside is that you have to guess the width of a space.
And you lose any kerning that might be happening with spaces - if there is such
a kerning, which I doubt but am not sure.
Either way, the width of spaces will probably be off a bit. That's a
good-enough workaround until this gets fixed, at least for me.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list