vcl/win/gdi/salfont.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 7adad1a2755abd3a79b6411aec87f49be134531b
Author:     Serge Krot <serge.k...@cib.de>
AuthorDate: Tue Feb 26 21:38:36 2019 +0100
Commit:     Thorsten Behrens <thorsten.behr...@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.behr...@cib.de>
    Tested-by: Thorsten Behrens <thorsten.behr...@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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to