Hi, I needed a function to get the fontname by a pointer to the ttf file. Here is the solution: #include <WinAPIEx.au3> #include <Memory.au3> Global $hFile, $lFile, $tBuffer, $pBuffer, $iFile Global $sFile = FileOpenDialog("Choose Truetype Font", @ScriptDir, "Truetype Font (*.ttf)", 3) If @error Then Exit 1 $hFile = _WinAPI_CreateFile($sFile, 2, 2) If $hFile = 0 Then Exit 2 $lFile = FileGetSize($sFile) $tBuffer = DllStructCreate("byte[" & $lFile + 1 & "]") $pBuffer = D