[TextServer] Clamp internal font rendering size to 2048.
This commit is contained in:
parent
7dac0bc3be
commit
cfe2a6c2ce
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue