On 09.10.2020 04:33, Martin Frb via lazarus wrote:
It might be dead simple (at least I hope)

{$IFDEF WINDOWS_LIGATURE}
function GetCharacterPlacementW(hdc: HDC; lpString: LPCWSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTSW; dwFlags: DWORD): DWORD; stdcall; external 'gdi32' name 'GetCharacterPlacementW';
{$ENDIF}

Add stdcall.

Yes, the stdcall fixes the crash for me on Windows 10 64bit & Lazarus IDE 32bit.

But the ligatures are not very promising. I get ':=' as ligature but nothing else.

Ondrej

--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to