From 1ff942287f418ed3b69f246e313b8312558896c6 Mon Sep 17 00:00:00 2001 From: volzhs Date: Sun, 3 Sep 2017 01:52:49 +0900 Subject: [PATCH] Adjust Noto font metrics --- editor/editor_fonts.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/editor/editor_fonts.cpp b/editor/editor_fonts.cpp index 53b05961d6c..ceee4b79db9 100644 --- a/editor/editor_fonts.cpp +++ b/editor/editor_fonts.cpp @@ -71,11 +71,13 @@ static Ref make_font(int p_height, int p_ascent, int p_valign, int p m_name->add_fallback(FontJapanese); \ m_name->add_fallback(FontFallback); -#define MAKE_DEFAULT_FONT(m_name, m_size) \ - Ref m_name; \ - m_name.instance(); \ - m_name->set_size(m_size); \ - m_name->set_font_data(DefaultFont); \ +#define MAKE_DEFAULT_FONT(m_name, m_size) \ + Ref m_name; \ + m_name.instance(); \ + m_name->set_size(m_size); \ + m_name->set_font_data(DefaultFont); \ + m_name->set_spacing(DynamicFont::SPACING_TOP, -1); \ + m_name->set_spacing(DynamicFont::SPACING_BOTTOM, -1); \ MAKE_FALLBACKS(m_name); void editor_register_fonts(Ref p_theme) {