We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2137

Summary: SDL Message Boxes don't cope with fixed width fonts (in windows at least)
Product: SDL Reporter: Pegasus Epsilon <pegasus>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: pegasus, philipp.wiesemann
Version: 2.0.0   
Hardware: x86_64   
OS: Windows 7   
Attachments: Example message boxes, first SDL with Arial, then SDL with DejaVu Sans Mono, then Windows with DejaVu Sans Mono

Description Pegasus Epsilon 2013-10-07 01:52:34 UTC
Created attachment 1357 [details]
Example message boxes, first SDL with Arial, then SDL with DejaVu Sans Mono, then Windows with DejaVu Sans Mono

With the system dialog font set to Arial or Tahoma or another variable-width font, everything works just as expected. When using a fixed-width font, like Courier or DejaVu Sans Mono, the text gets cut off. Example screenshots attached.

The first example is SDL_ShowSimpleMessageBox with Arial as the system dialog font. This works as expected.

The second example is SDL_ShowSimpleMessageBox with DejaVu Sans Mono as the system dialog font. Notice that the word "continuing..." is mysteriously missing.

The third example is Windows' built-in MessageBox API with the same font. Notice that all the text is correctly displayed.
Comment 1 Ryan C. Gordon 2015-02-19 05:22:20 UTC
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though!
Comment 2 Sam Lantinga 2017-08-15 06:45:19 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/23000b73ce4e