View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0017315||Runner||[All Projects] Functions||Public||2015-03-02 11:54||2017-07-25 11:34|
|Reporter||Tamas||Assigned To||Mike Dailly|
|Priority||Low||Severity||C - General||Reproducibility||100%|
|Summary||0017315: Functions: draw_text_ext() only limits text width by cutting lines at white spaces|
|Description||The draw_text_ext() documentation says: "limit the width of the string per line so that should any line exceed this value, GameMaker: Studio will automatically split the text to the next line". |
However in reality the behavior is different. GMS only splits lines at existing white spaces. If a line of text is longer than the "w" parameter provided for the function, but there's no space in the line, then it still will be drawn as a single line, long length text.
|Additional Information||Original helpdesk ticket: http://help.yoyogames.com/tickets/81220|
|1.4 Found In||1.4.1499|
|2.x Runtime Found In|
|2.x Runtime Verified In|
|Reproduced and added a sample|
|Verified in 1.99.364 - Closing.|
NOTE: This change has been reverted.
This is not how the wrapping is supposed to work. It's supposed to always be word wrap. if you add a word that just doesn't fit, then you should either be making enough space, or adding in wrapping yourself.
Writing a simple "character wrap" is easy enough, and not what draw_text_ext() is supposed to do, it's supposed to word wrap. The manual will be updated to say this.
This also makes it consistent (again) with HTML5
||Won't Fix - Closing.|