1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Fix font fallback for lines with only non-visual/control characters.

This commit is contained in:
Pāvels Nadtočajevs
2025-07-25 08:17:11 +03:00
parent 967e2d499a
commit 6c34f48c90
2 changed files with 23 additions and 3 deletions

View File

@@ -159,7 +159,7 @@ void Label::_shape() const {
for (const String &str : para_text) {
Paragraph para;
para.text_rid = TS->create_shaped_text();
para.text = str;
para.text = str + String::chr(0x200B);
para.start = start;
start += str.length() + ps.length();
paragraphs.push_back(para);