View Issue Details

IDProjectCategoryView StatusLast Update
0017315Runner[All Projects] FunctionsPublic2017-07-25 11:34
ReporterTamasAssigned ToMike Dailly 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionWon't Fix 
PlatformWindowsOS OS Version
Product Version 
Target VersionFixed in Version 
Summary0017315: Functions: draw_text_ext() only limits text width by cutting lines at white spaces
DescriptionThe 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 InformationOriginal helpdesk ticket: http://help.yoyogames.com/tickets/81220
1.4 Found In1.4.1499
2.x Runtime Found In
2.x Runtime Verified In

Activities

Neil Wicker

2015-03-02 11:56

Updater   ~0036077

Reproduced and added a sample

Neil Wicker

2015-03-19 15:15

Updater   ~0036429

Verified in 1.99.364 - Closing.

Mike Dailly

2017-07-14 15:37

Manager   ~0054237

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

Sam Cumming

2017-07-25 11:34

Adminstrator   ~0054523

Won't Fix - Closing.