[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 02:41:44 CDT 2012


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

Joachim Durchholz <toolforger at durchholz.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toolforger at durchholz.org

--- Comment #2 from Joachim Durchholz <toolforger at durchholz.org> 2012-07-18 02:41:44 CDT ---
Confirming.

The crash is inside bmfont, not in wine itself. This points towards Wine
returning a zero where Windows doesn't.

Here's a workaround:
1) Remove characters 32 and 160 (these are indeed blanks, as GyB suspected).
2) Generate the font normally.
3) Open the .fnt file in a text editor and manually add #32 and #160.

For the manually added characters, here's a model line from a font generated in
Windows:
char id=32   x=61    y=18    width=1     height=0     xoffset=0     yoffset=11 
  xadvance=7     page=0  chnl=15

You may have to combine this with what you find in the generated .fnt file, and
maybe change the offsets to an unused area in the generated bitmap file.
Also, don't forget to increase the character count in the font file...

Disclaimer: Untested.

I have to go now, but I'll return with a trace and a tested workaround as soon
as I can (probably this evening).

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