mirror of
https://github.com/godotengine/godot.git
synced 2026-01-08 00:25:01 +03:00
Ignore empty Font resources as theme override.
Add range hint to font_size properties. Remove excessive `base_size` Font property.
This commit is contained in:
@@ -670,6 +670,7 @@ _FORCE_INLINE_ bool TextServerFallback::_ensure_glyph(FontDataFallback *p_font_d
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ bool TextServerFallback::_ensure_cache_for_size(FontDataFallback *p_font_data, const Vector2i &p_size) const {
|
||||
ERR_FAIL_COND_V(p_size.x <= 0, false);
|
||||
if (p_font_data->cache.has(p_size)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user