mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 20:39:30 +02:00
cocoa: Fixes the font size in text drawing, this fixes TLabel with Font.Size>0 and nothing else set
git-svn-id: trunk@46170 -
This commit is contained in:
parent
ee813e253a
commit
f838124711
@ -528,10 +528,10 @@ begin
|
||||
|
||||
FName := AFontName;
|
||||
if FName = 'default' then
|
||||
begin
|
||||
FName := NSStringToString(NSFont.systemFontOfSize(0).familyName);
|
||||
FSize := Round(NSFont.systemFontSize);
|
||||
end
|
||||
|
||||
if ALogFont.lfHeight = 0 then
|
||||
FSize := Round(NSFont.systemFontSize)
|
||||
else
|
||||
FSize := Abs(ALogFont.lfHeight);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user