mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-17 15:22:42 +02:00
qt interface: fixed font height from Paul
git-svn-id: trunk@11729 -
This commit is contained in:
parent
d909764d09
commit
010ccd79e7
@ -577,8 +577,7 @@ begin
|
||||
|
||||
QtFont := TQtFont.Create(True);
|
||||
try
|
||||
if LogFont.lfHeight > 0 then QtFont.setPointSize(LogFont.lfHeight)
|
||||
else if LogFont.lfHeight < 0 then QtFont.setPointSize(-1 * LogFont.lfHeight);
|
||||
QtFont.setPixelSize(Abs(LogFont.lfHeight));
|
||||
|
||||
// Some values at available on Qt documentation at a table
|
||||
// Others are guesses. The best would be to test different values for those
|
||||
@ -4624,3 +4623,4 @@ end;
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user