[Lazarus] Strange Font.Height

Valdas Jankūnas zmuogs at gmail.com
Sun Jul 9 17:14:08 CEST 2017


2017-07-05 1:39 GMT+03:00 Valdas Jankūnas <zmuogs at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170709/a823b3a4/attachment.html>


More information about the Lazarus mailing list