[TextServer] Clamp internal font rendering size to 2048.

This commit is contained in:
Pāvels Nadtočajevs
2026-02-06 11:26:05 +02:00
parent 7dac0bc3be
commit cfe2a6c2ce
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;