vcl/quartz/ctfonts.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit af424114d0648cead5c05eb70adbed499ffae581 Author: Khaled Hosny <[email protected]> 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/15563 Reviewed-by: Adolfo Jayme Barrientos <[email protected]> Tested-by: Adolfo Jayme Barrientos <[email protected]> diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index a11453c..06bccb5 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -83,7 +83,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 [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
