mirror of
https://github.com/freetype/freetype.git
synced 2026-10-23 11:08:54 +03:00
Prefer 'MAXP' over 'maxp' and read its 24-bit glyph count. Keep the wide count internally while saturating the legacy public `TT_MaxProfile` field. Assisted-by: OpenAI Codex <noreply@openai.com> * include/freetype/internal/tttypes.h (TT_Face): New field `maxp_num_glyphs`. * include/freetype/tttags.h (TTAG_MAXP): New macro. * src/sfnt/sfobjs.c (sfnt_load_face): Updated. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Updated. * src/sfnt/ttload.c (tt_face_load_maxp): Handle 'MAXP' table. * src/sfnt/ttpost.c (load_post_names, tt_face_get_ps_name): Updated.