vcl/quartz/ctfonts.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3e1dbbe21ddd9b40fde12da6cb680e91aa0a4e54
Author: Khaled Hosny <khaledho...@eglug.org>
Date:   Tue Apr 28 02:35:37 2015 +0300

    tdf#71034: [OS X] Ugly (too heavy) fake bold
    
    Instead of using a hardcoded stroking value, adopt the formula used by
    AOO which seems to give better results.
    
    Change-Id: I87d55e1fadccf4521c26cd60458d968fcd8a2386
    Reviewed-on: https://gerrit.libreoffice.org/15553
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index 02db1af..700c0e1 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -80,7 +80,7 @@ CoreTextStyle::CoreTextStyle( const FontSelectPattern& rFSD )
          ((mpFontData->GetWeight() < WEIGHT_SEMIBOLD) &&
           (mpFontData->GetWeight() != WEIGHT_DONTKNOW)) )
     {
-        int nStroke = -10.0;
+        int nStroke = -lrint((3.5F * pReqFont->GetWeight()) / 
mpFontData->GetWeight());
         CFNumberRef rStroke = CFNumberCreate(NULL, kCFNumberSInt32Type, 
&nStroke);
         CFDictionarySetValue(mpStyleDict, kCTStrokeWidthAttributeName, 
rStroke);
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to