Kaydet (Commit) 3a96d8ea authored tarafından Thorsten Wagner's avatar Thorsten Wagner Kaydeden (comit) Adolfo Jayme Barrientos

tdf#90822: Descenders cropped

Change-Id: I0985fb290c18630aab2d33a5ac59e32a172e7630
Reviewed-on: https://gerrit.libreoffice.org/15502Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst c23dd470
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment