diff options
author | Thorsten Wagner <thorsten.wagner.4@gmail.com> | 2015-04-24 00:11:41 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2015-04-26 01:58:51 +0000 |
commit | 3a96d8ead86dc210085f09076fd270f247442f0a (patch) | |
tree | d52c9f088eb1e8e560eeb90a20b2c979dc6770b5 /vcl | |
parent | c23dd470d49d722197c148f4ef64a6a3350af88d (diff) |
tdf#90822: Descenders cropped
Change-Id: I0985fb290c18630aab2d33a5ac59e32a172e7630
Reviewed-on: https://gerrit.libreoffice.org/15502
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/quartz/ctfonts.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index 584ceaa4a6be..02db1af97fbb 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -123,10 +123,10 @@ void CoreTextStyle::GetFontMetric( ImplFontMetricData& rMetric ) const const CGFloat fAscent = CTFontGetAscent( aCTFontRef ); const CGFloat fCapHeight = CTFontGetCapHeight( aCTFontRef ); - rMetric.mnAscent = fAscent; - rMetric.mnDescent = CTFontGetDescent( aCTFontRef ); - rMetric.mnExtLeading = CTFontGetLeading( aCTFontRef ); - rMetric.mnIntLeading = fAscent - fCapHeight; + rMetric.mnAscent = lrint( fAscent ); + rMetric.mnDescent = lrint( CTFontGetDescent( aCTFontRef )); + rMetric.mnExtLeading = lrint( CTFontGetLeading( aCTFontRef )); + rMetric.mnIntLeading = lrint( fAscent - fCapHeight ); // since ImplFontMetricData::mnWidth is only used for stretching/squeezing fonts // setting this width to the pixel height of the fontsize is good enough |