qt interface: fixed font height from Paul

git-svn-id: trunk@11729 -
This commit is contained in:
vincents 2007-08-03 14:10:17 +00:00
parent d909764d09
commit 010ccd79e7

View File

@ -577,8 +577,7 @@ begin
QtFont := TQtFont.Create(True); QtFont := TQtFont.Create(True);
try try
if LogFont.lfHeight > 0 then QtFont.setPointSize(LogFont.lfHeight) QtFont.setPixelSize(Abs(LogFont.lfHeight));
else if LogFont.lfHeight < 0 then QtFont.setPointSize(-1 * LogFont.lfHeight);
// Some values at available on Qt documentation at a table // Some values at available on Qt documentation at a table
// Others are guesses. The best would be to test different values for those // Others are guesses. The best would be to test different values for those
@ -4624,3 +4623,4 @@ end;