cocoa: font of the height is a negative number based on the font size. #32003

git-svn-id: trunk@56998 -
This commit is contained in:
dmitry 2018-01-07 04:10:47 +00:00
parent 4a7772dab9
commit cf395e4176

View File

@ -1276,7 +1276,7 @@ begin
Result := SizeOf(TLogFont);
FillChar(ALogFont^, SizeOf(ALogFont^), 0);
ALogFont^.lfFaceName := AFont.Name;
ALogFont^.lfHeight := Round( AFont.Size * DPI / 72);
ALogFont^.lfHeight := -Round( AFont.Size * DPI / 72);
Traits := NSFontManager.sharedFontManager.traitsOfFont(AFont.Font);
if (Traits and NSFontBoldTrait) <> 0 then
ALogFont^.lfWeight := FW_BOLD