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:
sekelsenmat 2014-09-10 14:59:13 +00:00
parent ee813e253a
commit f838124711

View File

@ -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);