diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-06-30 02:33:01 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2013-06-30 02:38:11 +0200 |
commit | 5e0813fc8ef1eb1b19392e46801a231b6f4e931c (patch) | |
tree | 74824a698b2b608faaaa77b882976bb4ea6e666e /vcl | |
parent | 9bd0a976017fadf4344cbf6746abd395dfcc3cb7 (diff) |
fdo#66385: bad line spacing under Core Text
We should be setting mnExtLeading not mnIntLeading, at least this is
what ATSUI code was doing.
Change-Id: Ibe69da4ea60630a31593b538f55fd2cd95642bf9
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/coretext/ctfonts.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/coretext/ctfonts.cxx b/vcl/coretext/ctfonts.cxx index b19dca5ef079..9caf4f4bfd50 100644 --- a/vcl/coretext/ctfonts.cxx +++ b/vcl/coretext/ctfonts.cxx @@ -121,8 +121,8 @@ void CTTextStyle::GetFontMetric( float fPixelSize, ImplFontMetricData& rMetric ) rMetric.mnAscent = lrint( CTFontGetAscent( aCTFontRef ) * fPixelSize); rMetric.mnDescent = lrint( CTFontGetDescent( aCTFontRef ) * fPixelSize); - rMetric.mnIntLeading = lrint( CTFontGetLeading( aCTFontRef ) * fPixelSize); - rMetric.mnExtLeading = 0; + rMetric.mnExtLeading = lrint( CTFontGetLeading( aCTFontRef ) * fPixelSize); + rMetric.mnIntLeading = 0; // since ImplFontMetricData::mnWidth is only used for stretching/squeezing fonts // setting this width to the pixel height of the fontsize is good enough // it also makes the calculation of the stretch factor simple |