[Lazarus] Win 7 issue / Re: -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

Martin Frb lazarus at mfriebe.de
Fri Oct 9 03:14:32 CEST 2020


On 09/10/2020 00:55, Maxim Ganetsky via lazarus wrote:
> Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=i386-win32-win32 
> New=i386-win
> 32-win32 Changed: OS/CPU=True LCL=False
> Calling NewTextOut L: 71 rcT: l=71,t=36,r=85,b=54 tok: 
> l=71,t=36,r=85,b=54 tkt:
> 2020 // 2 // eto: False
> BEFORE
>

That output looks all ok.

I concluded from the output that you have a 32 bit IDE.
So I checked => 32 bit IDE crashes for me too.
 From the bit of debugging I have done, this may be a stack corruption. 
I had cases where the OS returned to NewTextOut (even though indicating 
that GetCharacterPlacementW failed), but NewTextOut crashed on exit. 
(either in its internal finally handler, or on actually returning to parent)

Interestingly on Win10 a 32bit IDE - while not crashing - does not 
display ligatures. The call to GetCharacterPlacementW returns failed.

Anyway, I squeezed this in, under the assumption it might be a quick 
solution.
So this will have to go back on the todo list.
If someone has any worthwhile idea what might cause the issue....



More information about the lazarus mailing list