mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 21:00:23 +02:00
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:
parent
4a7772dab9
commit
cf395e4176
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user