View | Details | Raw Unified | Return to issue 125021
Collapse All | Expand All

(-)trunk/main/vcl/aqua/source/gdi/ctfonts.cxx (-4 / +4 lines)
Lines 181-190 Link Here
181
	const double fPixelSize = (mfFontScale * fDPIY);
181
	const double fPixelSize = (mfFontScale * fDPIY);
182
	const CGFloat fAscent = CTFontGetAscent( aCTFontRef );
182
	const CGFloat fAscent = CTFontGetAscent( aCTFontRef );
183
	const CGFloat fCapHeight = CTFontGetCapHeight( aCTFontRef );
183
	const CGFloat fCapHeight = CTFontGetCapHeight( aCTFontRef );
184
	rMetric.mnAscent       = lrint( fAscent * fPixelSize);
184
	rMetric.mnAscent       = fAscent * fPixelSize;
185
	rMetric.mnDescent      = lrint( CTFontGetDescent( aCTFontRef ) * fPixelSize);
185
	rMetric.mnDescent      = CTFontGetDescent( aCTFontRef ) * fPixelSize;
186
	rMetric.mnExtLeading   = lrint( CTFontGetLeading( aCTFontRef ) * fPixelSize);
186
	rMetric.mnExtLeading   = CTFontGetLeading( aCTFontRef ) * fPixelSize;
187
	rMetric.mnIntLeading   = lrint( (fAscent - fCapHeight) * fPixelSize);
187
	rMetric.mnIntLeading   = (fAscent - fCapHeight) * fPixelSize;
188
188
189
	// since ImplFontMetricData::mnWidth is only used for stretching/squeezing fonts
189
	// since ImplFontMetricData::mnWidth is only used for stretching/squeezing fonts
190
	// setting this width to the pixel height of the fontsize is good enough
190
	// setting this width to the pixel height of the fontsize is good enough

Return to issue 125021