2017-07-05 1:39 GMT+03:00 Valdas Jankūnas <zmu...@gmail.com>:

> 2017.07.05 00:19, Ondrej Pokorny via Lazarus rašė:
>
>> Can you test Lazarus 1.6.x, please?
>>
>> Ondrej
>>
>
> attaching test project. Results:
>
> Kubuntu 17.04 (in virtualbox); Lazarus 1.6.4; FPC 3.0.2; WS Gtk2:
> 18
> 24
> 33
> 45
> 61
> 83
>
> Kubuntu 17.04 (in virtualbox); Lazarus 1.6.4; FPC 3.0.2; WS Qt:
> 14
> 16
> 19
> 22
> 25
> 29
>
> Ubuntu 17.04 (in virtualbox); Lazarus 1.6.4; FPC 3.0.2; WS Gtk2:
> 17
> 19
> 22
> 25
> 28
> 31
>
> Ubuntu 17.04 (in virtualbox); Lazarus 1.6.4; FPC 3.0.2; WS Qt:
> 17
> 19
> 22
> 25
> 28
> 31
>

I ran this code (Lazarus 1.9.0):

Writeln('Canvas.Font.PixelsPerInch = ', + Canvas.Font.PixelsPerInch);
writeln('Forms.Screen.PixelsPerInch = ', + Forms.Screen.PixelsPerInch);
writeln('Graphics.ScreenInfo.PixelsPerInchX = ',
Graphics.ScreenInfo.PixelsPerInchX);

and got:

Canvas.Font.PixelsPerInch = 96
Forms.Screen.PixelsPerInch = 141
Graphics.ScreenInfo.PixelsPerInchX = 141

"xdpyinfo | grep dots" in console gives "resolution:    141x141 dots per
inch".

PPI of Font differs from rest PPI. Is this intended or a bug?

______
 Valdas Jankūnas
-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to