<div dir="ltr">Hello everyone,<br>In the recent weeks, I've been experimenting with Project Panama on JDK 21. I'm trying to create a wrapper for the Freetype font library written in C, but I'm having some issues, probably because I still don't understand very well the FFM API.<div>While using the code generated by JExtract, I noticed that it fails to parse the <i>charmaps</i> array from the <a href="https://freetype.org/freetype2/docs/reference/ft2-face_creation.html#ft_facerec">FT_FaceRec</a> struct. With the TTF font, I'm testing, there are two <i>charmaps</i>, the values of the first one are the same printed by the native code too, but for the second, the values are completely randomic</div><div>Here is a little reproducer: <a href="https://www.dropbox.com/scl/fi/gitugnyxe3kyomm4m0pke/FreetypeMRE.zip?rlkey=tvnrsb5ernwasmxj6cgrjyqqq&dl=0">FreetypeMRE</a></div><div>Running the Test class will print the two <i>charmaps</i>. There is also a little .exe I built to check the output of native code, it's located in the src/native directory (there is also the C src code)<br>Am I doing something wrong, or is this a bug?</div></div>