Merge pull request #32956 from volzhs/invalid-bold

Fix validating editor bold font
This commit is contained in:
Rémi Verschelde 2019-10-21 17:15:40 +02:00 committed by GitHub
commit 9e631a40c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@
Ref<DynamicFont> m_name; \ Ref<DynamicFont> m_name; \
m_name.instance(); \ m_name.instance(); \
m_name->set_size(m_size); \ m_name->set_size(m_size); \
if (CustomFont.is_valid()) { \ if (CustomFontBold.is_valid()) { \
m_name->set_font_data(CustomFontBold); \ m_name->set_font_data(CustomFontBold); \
m_name->add_fallback(DefaultFontBold); \ m_name->add_fallback(DefaultFontBold); \
} else { \ } else { \