Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0017315Runner[All Projects] FunctionsPublic2015-03-02 11:542017-07-25 11:34
ReporterTamas 
Assigned ToMike Dailly 
PriorityLowSeverityC - GeneralReproducibility100%
StatusClosedResolutionWon't Fix 
PlatformWindowsOS OS 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 Version1.4.1499
2.x Runtime Version
2.x Runtime Version Verified In
Attached Files

- Relationships

-  Notes
(0036077)
Neil Wicker (Updater)
2015-03-02 11:56

Reproduced and added a sample
(0036429)
Neil Wicker (Updater)
2015-03-19 15:15

Verified in 1.99.364 - Closing.
(0054237)
Mike Dailly (Manager)
2017-07-14 15:37

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
(0054523)
Sam Cumming (Administrator)
2017-07-25 11:34

Won't Fix - Closing.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker