fix: use correct charmap and glyphmap sizes (#1999)

(cherry picked from commit 87ee3799610354fc90617ec8206337fedeee39f5)
This commit is contained in:
Guldoman
2025-05-18 22:55:29 +08:00
committed by takase1121
parent 0d9431857e
commit d5aa9ddad7
+2 -2
View File
@@ -54,13 +54,13 @@ static const char *const get_ft_error(FT_Error err) {
#define MAX_UNICODE 0x10FFFF
// number of rows and columns in the codepoint map
#define CHARMAP_ROW 128
#define CHARMAP_COL (MAX_UNICODE / CHARMAP_ROW)
#define CHARMAP_COL ((unsigned int)ceil((float)MAX_UNICODE / CHARMAP_ROW))
// the maximum number of glyphs for OpenType
#define MAX_GLYPHS 65535
// number of rows and columns in the glyph map
#define GLYPHMAP_ROW 128
#define GLYPHMAP_COL (MAX_GLYPHS / GLYPHMAP_ROW)
#define GLYPHMAP_COL ((unsigned int)ceil((float)MAX_GLYPHS / GLYPHMAP_ROW))
// number of subpixel bitmaps
#define SUBPIXEL_BITMAPS_CACHED 3