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).


(cherry picked from commit c89464824d)

Co-authored-by: chrschllr <christoph.schaller03@gmail.com>
This commit is contained in:
Maxim Ganetsky 2025-06-30 23:00:41 +03:00
parent 978bc3a3ab
commit 17d5fce04b

View File

@ -36,7 +36,7 @@ type
(* the glyphIdArray for this format has 256 entries *) (* the glyphIdArray for this format has 256 entries *)
TCMap0 = record TCMap0 = record
glyphIdArray : PUShort; glyphIdArray : PByte;
end; end;
(* FORMAT 2 *) (* FORMAT 2 *)