Re: [Lazarus] Strange Font.Height

2017-07-09 Thread Valdas Jankūnas via Lazarus
I created simple GUI project and OnCreate added previously mentioned code. Is this a bug in Lazarus? 2017-07-09 18:41 GMT+03:00 Ondrej Pokorny via Lazarus < lazarus@lists.lazarus-ide.org>: > On 09.07.2017 17:14, Valdas Jankūnas via Lazarus wrote: > > PPI of Font differs from rest PPI. Is this int

Re: [Lazarus] Strange Font.Height

2017-07-09 Thread Ondrej Pokorny via Lazarus
On 09.07.2017 17:14, Valdas Jankūnas via Lazarus wrote: PPI of Font differs from rest PPI. Is this intended or a bug? It depends what your code is. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listin

Re: [Lazarus] Strange Font.Height

2017-07-09 Thread Valdas Jankūnas via Lazarus
2017-07-05 1:39 GMT+03:00 Valdas Jankūnas : > 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 > > Kub

Re: [Lazarus] Strange Font.Height

2017-07-04 Thread Ondrej Pokorny via Lazarus
On 04.07.2017 22:58, Valdas Jankūnas via Lazarus wrote: code (WS: GTK2): i := Canvas.TextHeight('I'); writeln(i); Canvas.Font.Height := i; i:= Canvas.TextHeight('I'); writeln(i); Canvas.Font.Height := i; i:= Canvas.TextHeight('I'); writeln(i); I get: 24 33 45 I think that "Canv

[Lazarus] Strange Font.Height

2017-07-04 Thread Valdas Jankūnas via Lazarus
Hello, code (WS: GTK2): i := Canvas.TextHeight('I'); writeln(i); Canvas.Font.Height := i; i:= Canvas.TextHeight('I'); writeln(i); Canvas.Font.Height := i; i:= Canvas.TextHeight('I'); writeln(i); I get: 24 33 45 I think that "Canvas.Font.Height" and "Canvas.TextHeight('a')" shou