diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2015-04-28 02:35:37 +0300 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2015-04-28 16:36:34 +0000 |
commit | 3e1dbbe21ddd9b40fde12da6cb680e91aa0a4e54 (patch) | |
tree | f2eb220c85307a763116eb5eabc098f1ff7abf6b | |
parent | 6f6446081ca71fe8a7aa34ccff2f3bbfa424d115 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | vcl/quartz/ctfonts.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index 02db1af97fbb..700c0e1a54cd 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); } |