Hi everyone !
I’ve come across a rare bug when the text inside a textfield isn’t properly formated when reaching the end of the textfield width and being bold, here’s an example:
The word “sentence” should go to the next line and not be separated .
Here’s the code to test the issue:
//txtfld is the textfield instance txtfld.width = 270; txtfld.htmlText = "Test string to test if anything works well <b>using some bold text at the end of some sentence</b>.\nEnd of the test";
The width of the textfield must be 270 for the bug to appear, if not there is no issue.
With about 250 strings on my game, i have this issue on something like 10 strings.
If i remove the bold tags, the textfield behave just fine.
Do you have any idea what is causing this ?
Thanks for reading ^^.
Also i’m sorry to only post when coming accross bugs, and i know i never mention it, but i love openfl and all the hard work you did on 6.1.0 ^^, cheers !
EDIT: i forgot to mention, it’s for a html5 export, using the canvas renderer, lime 5.4.0