summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-01-23 15:04:00 +0200
committerAndras Timar <andras.timar@collabora.com>2018-02-06 15:24:15 +0100
commit1476d4a10723c20f1cf1be3b6746c891ca21adf8 (patch)
tree9a398b9454297986d60f1f2f2c3c36f7ebf93222 /vcl
parenttdf#112153: Set button theme properly (diff)
downloadcore-1476d4a10723c20f1cf1be3b6746c891ca21adf8.tar.gz
core-1476d4a10723c20f1cf1be3b6746c891ca21adf8.zip
tdf#69254: Tweak mapping from CoreText weight to our FontWeight a bit
Make the mapping of light weights more likely to hit different enum values for slightly different weights. We want to be able to distinguish between for instance Overpass Light (with weight -0.4) and Overpass ExtraLight (with weight -0.5). Change-Id: If83fbce68149b267a49ef9bcb6624d8790de7c56 Reviewed-on: https://gerrit.libreoffice.org/48426 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> (cherry picked from commit 3aeda82b09253d20d234d50b39e76977031f2102) Signed-off-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/ctfonts.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index acc8add0b9f3..576ef69bef63 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -396,7 +396,7 @@ FontAttributes DevFontFromCTFontDescriptor( CTFontDescriptorRef pFD, bool* bFont
}
else if( fWeight < 0 )
{
- nInt = rint(WEIGHT_NORMAL + fWeight * ((WEIGHT_NORMAL - WEIGHT_THIN)/0.9));
+ nInt = rint(WEIGHT_NORMAL + fWeight * ((WEIGHT_NORMAL - WEIGHT_THIN)/0.8));
if( nInt < WEIGHT_THIN )
{
nInt = WEIGHT_THIN;