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:
@@ -1211,6 +1211,7 @@ _FORCE_INLINE_ bool TextServerAdvanced::_ensure_glyph(FontDataAdvanced *p_font_d
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ bool TextServerAdvanced::_ensure_cache_for_size(FontDataAdvanced *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