mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #24428 from akien-mga/label-uppercase
Label: Fix kerning when using Uppercase mode
This commit is contained in:
commit
a195b2f1a3
@ -244,7 +244,7 @@ void Label::_notification(int p_what) {
|
||||
CharType n = xl_text[i + pos + 1];
|
||||
if (uppercase) {
|
||||
c = String::char_uppercase(c);
|
||||
n = String::char_uppercase(c);
|
||||
n = String::char_uppercase(n);
|
||||
}
|
||||
|
||||
float move = font->draw_char(ci, Point2(x_ofs_shadow, y_ofs) + shadow_ofs, c, n, font_color_shadow, false);
|
||||
@ -265,7 +265,7 @@ void Label::_notification(int p_what) {
|
||||
CharType n = xl_text[i + pos + 1];
|
||||
if (uppercase) {
|
||||
c = String::char_uppercase(c);
|
||||
n = String::char_uppercase(c);
|
||||
n = String::char_uppercase(n);
|
||||
}
|
||||
|
||||
x_ofs += drawer.draw_char(ci, Point2(x_ofs, y_ofs), c, n, font_color);
|
||||
|
Loading…
Reference in New Issue
Block a user