[TextServer] Clamp internal font rendering size to 2048.
This commit is contained in:
@@ -936,8 +936,8 @@ bool TextServerFallback::_ensure_cache_for_size(FontFallback *p_font_data, const
|
||||
} else {
|
||||
FT_Size_RequestRec req;
|
||||
req.type = FT_SIZE_REQUEST_TYPE_NOMINAL;
|
||||
req.width = sz * 64.0;
|
||||
req.height = sz * 64.0;
|
||||
req.width = MIN(2048.0, sz) * 64.0;
|
||||
req.height = MIN(2048.0, sz) * 64.0;
|
||||
req.horiResolution = 0;
|
||||
req.vertResolution = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user