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 - SDL Message Boxes don't cope with fixed width fonts (in windows at least)
Summary: SDL Message Boxes don't cope with fixed width fonts (in windows at least)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.0
Hardware: x86_64 Windows 7
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-07 01:52 UTC by Pegasus Epsilon
Modified: 2017-08-15 06:45 UTC (History)
2 users (show)

See Also:


Attachments
Example message boxes, first SDL with Arial, then SDL with DejaVu Sans Mono, then Windows with DejaVu Sans Mono (21.43 KB, image/png)
2013-10-07 01:52 UTC, Pegasus Epsilon
Details

Note You need to log in before you can comment on or make changes to this bug.
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