MeasureText proc sometimes does not follow the width parameter.
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
TestMeasureText()
var/textWidth = input(src,"Width?","MeasureText Width", 215) as num
var/textMessage = input(src, "Text to Measure", "MeasureText Text", "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.") as text
var/measureText = src.client.MeasureText(textMessage, null, textWidth)
src << "MeasureText Dimensions [measureText]"
Expected Results:
Outputs 215x[Something]
Actual Results:
Outputs 218x196
Does the problem occur:
Every time? Or how often? Every time
In other games? N/A
In other user accounts? N/A
On other computers? N/A
When does the problem NOT occur? Seems to be inconsistent when it respects it and when it doesn't. I thought it was isolated to br tags or /n in the text, but it seems to be something other than that as you can see in the demo.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) Did not test previous BYOND versions.
Workarounds: Unknown