Merge pull request #10690 from volzhs/editor-font

Replace default editor font to NotoSansUI
This commit is contained in:
Rémi Verschelde 2017-08-31 11:50:44 +02:00 committed by GitHub
commit e59bb87fb6
13 changed files with 152 additions and 41 deletions

View file

@ -85,7 +85,7 @@ void WindowDialog::_notification(int p_what) {
Ref<Font> font = get_font("title_font", "WindowDialog");
int ofs = (s.width - font->get_string_size(title).width) / 2;
//int ofs = st->get_margin(MARGIN_LEFT);
draw_string(font, Point2(ofs, -th + font->get_ascent()), title, tc, s.width - st->get_minimum_size().width);
draw_string(font, Point2(ofs, -th + font->get_ascent() - Math::round(font->get_descent() / 2)), title, tc, s.width - st->get_minimum_size().width);
} break;
case NOTIFICATION_THEME_CHANGED: