Problem when using set_visible_characters together with BBCode formatting

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By whirlingFantasia

I’m using a RichTextLabel for a dialogue box. I’ve set it up to type letters at a time, like what you would see in a visual novel.
func _on_Timer_timeout():
set_visible_characters(get_visible_characters()+1)

However, when using this with BBCode enabled, underlined or strike-through text have the lines show up ahead of the letters, like so:

I’ve tried using visiblepercent, but that yields the same result. Is there any way to use visiblecharacters or something similar in tandem with BBCode formatting without it looking strange?

it looks a bug to me. report it on github.
Sign in to GitHub · GitHub

volzhs | 2019-07-05 14:11