mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #111001 from bruvzg/ts_no_ft
Fix text servers build with disabled FreeType.
This commit is contained in:
commit
e1a6334b56
2 changed files with 7 additions and 2 deletions
|
|
@ -4473,6 +4473,7 @@ RID TextServerFallback::_find_sys_font_for_text(const RID &p_fdef, const String
|
|||
}
|
||||
|
||||
bool fb_use_msdf = key.msdf;
|
||||
#ifdef MODULE_FREETYPE_ENABLED
|
||||
if (fb_use_msdf) {
|
||||
FontFallback *fd = _get_font_data(sysf.rid);
|
||||
if (fd) {
|
||||
|
|
@ -4486,6 +4487,7 @@ RID TextServerFallback::_find_sys_font_for_text(const RID &p_fdef, const String
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
_font_set_antialiasing(sysf.rid, key.antialiasing);
|
||||
_font_set_disable_embedded_bitmaps(sysf.rid, key.disable_embedded_bitmaps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue