Merge pull request #21578 from volzhs/font-hindi
Add Hindi font for editor
This commit is contained in:
commit
6003cf70b1
2 changed files with 7 additions and 0 deletions
|
@ -68,6 +68,7 @@ static Ref<BitmapFont> make_font(int p_height, int p_ascent, int p_valign, int p
|
|||
m_name->add_fallback(FontArabic); \
|
||||
m_name->add_fallback(FontHebrew); \
|
||||
m_name->add_fallback(FontThai); \
|
||||
m_name->add_fallback(FontHindi); \
|
||||
m_name->add_fallback(FontJapanese); \
|
||||
m_name->add_fallback(FontFallback);
|
||||
|
||||
|
@ -204,6 +205,12 @@ void editor_register_fonts(Ref<Theme> p_theme) {
|
|||
FontThai->set_font_ptr(_font_NotoSansThaiUI_Regular, _font_NotoSansThaiUI_Regular_size);
|
||||
FontThai->set_force_autohinter(true); //just looks better..i think?
|
||||
|
||||
Ref<DynamicFontData> FontHindi;
|
||||
FontHindi.instance();
|
||||
FontHindi->set_hinting(font_hinting);
|
||||
FontHindi->set_font_ptr(_font_NotoSansDevanagariUI_Regular, _font_NotoSansDevanagariUI_Regular_size);
|
||||
FontHindi->set_force_autohinter(true); //just looks better..i think?
|
||||
|
||||
/* Hack */
|
||||
|
||||
Ref<DynamicFontData> dfmono;
|
||||
|
|
BIN
thirdparty/fonts/NotoSansDevanagariUI_Regular.ttf
vendored
Normal file
BIN
thirdparty/fonts/NotoSansDevanagariUI_Regular.ttf
vendored
Normal file
Binary file not shown.
Loading…
Reference in a new issue