From c89464824d3e5dc3d3a560b73d9cde29f3a751ed Mon Sep 17 00:00:00 2001 From: chrschllr Date: Mon, 30 Jun 2025 14:25:11 +0200 Subject: [PATCH] FreeType: Fix type of glyphIdArray (cmap format 0), see merge request !515. Both the Microsoft OpenType specification and Apple's TrueType reference manual define the relevant field, glyphIndexArray aka glyphIdArray, as an array of 256 bytes (aka uint8_t). --- components/freetype/ttcmap.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/freetype/ttcmap.pas b/components/freetype/ttcmap.pas index 832bfb8f3d..41f5744d34 100644 --- a/components/freetype/ttcmap.pas +++ b/components/freetype/ttcmap.pas @@ -36,7 +36,7 @@ type (* the glyphIdArray for this format has 256 entries *) TCMap0 = record - glyphIdArray : PUShort; + glyphIdArray : PByte; end; (* FORMAT 2 *)