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

Maxim Ganetsky ganmax at narod.ru
Tue Oct 6 01:01:44 CEST 2020


05.10.2020 18:36, Martin Frb via lazarus пишет:
> On 05/10/2020 00:27, Maxim Ganetsky via lazarus wrote:
>> Lazarus hangs on start for me on Windows 7 when compiled with this 
>> define.
>>
>> Lazarus 2.1.0 r63957 FPC 3.2.0 i386-win32-win32/win64. I use JetBrains 
>> Mono font.
>>
> I installed the font myself. And it works on windows 10 and that works.
> 
> However I found one possible issue.
> 
> Please go to
> SynTextDrawer.pp
> line 1269
> and replace the current
>      Windows.ExtTextOutW(FDC, X, Y, fuOptions or ETO_GLYPH_INDEX, 
> @ARect, Pointer(Glyphs), Length(Glyphs), EtoArray);
> with the following new
>      Windows.ExtTextOutW(FDC, X, Y, fuOptions or ETO_GLYPH_INDEX, 
> @ARect, Pointer(Glyphs), CharPlaceInfo.nGlyphs, EtoArray);
> 
> The other ...TextOut in the lines below that should be kept as they are.

This change does not help.

I also tried your suggestion to make function TheFontStock.GetNeedETO to 
always return false.

This did not make any difference too.

-- 
Best regards,
  Maxim Ganetsky                  mailto:ganmax at narod.ru


More information about the lazarus mailing list