We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b1ed52 commit d98528cCopy full SHA for d98528c
scene/gui/label.cpp
@@ -713,7 +713,9 @@ void Label::_notification(int p_what) {
713
int asc = TS->shaped_text_get_ascent(line_rid);
714
int dsc = TS->shaped_text_get_descent(line_rid);
715
if (asc + dsc < font_h) {
716
- dsc = font_h - asc;
+ int diff = font_h - (asc + dsc);
717
+ asc += diff / 2;
718
+ dsc += diff - (diff / 2);
719
}
720
721
const Glyph *glyphs = TS->shaped_text_get_glyphs(line_rid);
0 commit comments