You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Fix text servers build with disabled FreeType.
This commit is contained in:
@@ -4468,6 +4468,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) {
|
||||
@@ -4481,6 +4482,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);
|
||||
|
||||
Reference in New Issue
Block a user