View Issue Details

IDProjectCategoryView StatusLast Update
0031592RunnerFunctionsPublic2020-03-09 16:42
ReporterDanAssigned ToFritz 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
Platform-OSWindows 10OS VersionPro x64
Product Version2.2.5 
Target Version2.3.0Fixed in Version2.3.0 
Summary0031592: Functions: When using a custom font draw_text_ext() will add the default char [] instead of \n, and so fails to wrap text
DescriptionWhen using a custom font. draw_text_ext() will add the default char [] instead of \n, and so fails to wrap text. You can see this in the attached sample, where the top string will be one giant line and the width value will be far higher than what the code said to wrap on. You will also see the [] characters throughout the line.

The second block of text works fine when using font0, but it too shows this issue if you use a wider font like font1.

The issue does not occur if you use the default font, so simply comment out the draw_set_font() at the top of the event and this will "fix" the sample.
Steps To Reproduce1. Run the attached sample for Windows.
2. Observe the top string is all one line and has []s throughout.
3. (Optional) Change the draw_set_font() at the top of the event to use font1 and run the sample again, and observe this time both lots of text are "broken".
4. (Optional) Comment out the draw_set_font() and run the sample again, and observe this time both lots of text are "fixed".
Repro: 100%
Additional InformationThe fix in https://bugs.yoyogames.com/view.php?id=31531 has no effect, and this all reproduces the same in 2.3.0.
TagsNo tags attached.
1.4 Found In
2.x Runtime Found In2.2.5.378
2.x Runtime Verified In9.9.1.1717

Activities

Dan

2020-01-23 09:13

Adminstrator  

draw_text_ext.yyz (75,535 bytes)

Alice

2020-03-09 16:42

Adminstrator   ~0065497

Verified fixed on IDE v9.2.1.2152 Runtime v9.9.1.1717.
Closing the bug. Thank you.