Qt5: fixed issue with fonts. issue #36483

git-svn-id: trunk@62604 -
This commit is contained in:
zeljko 2020-01-31 14:16:36 +00:00
parent 6756799c39
commit d2aee554cb

View File

@ -3102,8 +3102,9 @@ begin
SelFont := AFont;
if (AFont.FHandle <> nil) and (Widget <> nil) then
begin
QFnt := QPainter_font(Widget);
AssignQtFont(AFont.FHandle, QFnt);
QFnt := QFont_Create(AFont.FHandle);
QPainter_setFont(Widget, QFnt);
QFont_destroy(QFnt);
vFont.Angle := AFont.Angle;
end;
end;