[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - vcl/win
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Mar 4 11:37:45 UTC 2019
vcl/win/gdi/salfont.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 7adad1a2755abd3a79b6411aec87f49be134531b
Author: Serge Krot <Serge.Krot at cib.de>
AuthorDate: Tue Feb 26 21:38:36 2019 +0100
Commit: Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Mon Mar 4 12:37:24 2019 +0100
impress: bullets wrongly rendered when scalled less to 2px
Change-Id: I102f24a9410072a1d7db038bfa28ab33262adba9
Reviewed-on: https://gerrit.libreoffice.org/68407
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index df406d4c4f88..c56957f0158a 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -1347,6 +1347,14 @@ void ImplGetLogFontFromFontSelect( HDC hDC,
rLogFont.lfFaceName[nNameLen] = '\0';
}
}
+
+ // With "StarSymbol" or with "OpenSymbol" symbol font, a really small bullets appear
+ // to be very large (wrongly scaled) in preview and/or in main slide view.
+ if ((rLogFont.lfHeight == -1) &&
+ (aName.equalsIgnoreAsciiCase("starsymbol") || aName.equalsIgnoreAsciiCase("opensymbol")) )
+ {
+ rLogFont.lfHeight = -2;
+ }
}
HFONT WinSalGraphics::ImplDoSetFont( FontSelectPattern* i_pFont, float& o_rFontScale, HFONT& o_rOldFont )
More information about the Libreoffice-commits
mailing list