vcl/osx/salframe.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5bf4f36b509ae2bdc507074d53af007b4852013d Author: Thorsten Wagner <thorsten.wagne...@gmail.com> AuthorDate: Tue Aug 23 21:25:23 2022 +0200 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Mon Aug 29 06:45:07 2022 +0200 Prevent rounding down fontheights depending on display resolution for macOS Change-Id: Ifb0ba848de3613e49237fd1e4b4739915154f355 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138744 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index 2685705287c8..9003a8dbde99 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -1181,7 +1181,7 @@ static vcl::Font getFont( NSFont* pFont, sal_Int32 nDPIY, const vcl::Font& rDefa if( pFont ) { aResult.SetFamilyName( GetOUString( [pFont familyName] ) ); - aResult.SetFontHeight( static_cast<int>(([pFont pointSize] * 72.0 / static_cast<float>(nDPIY))+0.5) ); + aResult.SetFontHeight( static_cast<int>(ceil([pFont pointSize] * 72.0 / static_cast<float>(nDPIY))) ); aResult.SetItalic( ([pFont italicAngle] != 0.0) ? ITALIC_NORMAL : ITALIC_NONE ); // FIMXE: bold ? }