JujuAdams / Scribble

Efficient, internationalized, multi-effects text renderer for GameMaker
https://www.jujuadams.com/Scribble/
MIT License
321 stars 47 forks source link

Region bug when wrapping text #483

Open AmoraChinchilla opened 11 months ago

AmoraChinchilla commented 11 months ago

I found a bug while working on my project and replicated it in the example project! Basically, when using regions with wrapped text, if the region spans a line break then any other text on the line is also counted as being a part of that region. I've attached a gif of what I mean. scribble bug This is the obj_test_wrap, with the only code changed being that there are [region] tags on either side of the red text and a region detector to make it display red.

It's worth noting that this happens even when the remaining space on the line is completely blank: scribble bug 2

But does not happen when the space is a result of manual line breaks (\n\n in this case): scribble bug 3