draw_text should ignore carriage returns

Reporter: time-killer-games  |  Status: open  |  Last Modified: June 15, 2021, 07:19:47 am
GameMaker 8.1, Studio 1.4, and Studio 2.x do not treat carriage returns as new lines but instead ignores them completely with draw_text. This is desirable behavior because on Windows new lines include a carriage return followed by a line feed, instead of just a line feed like on Mac and Linux. With carriage returns not ignored, Windows new lines are doubled in size.

try drawing "hi" + chr(13) + chr(10) + "fam"

it will look like:

hi

fam

and not:

hi
fam

when it should look like the latter.

Please sign in to post comments, or you can view this issue on GitHub.