mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-1428 need to scale ascent, descent and leading by fDeviceScaleFactorY
X-SVN-Rev: 8378
This commit is contained in:
parent
28a77b9e53
commit
ee24c09da0
1 changed files with 3 additions and 3 deletions
|
@ -55,9 +55,9 @@ GnomeFontInstance::GnomeFontInstance(TT_Engine engine, const TT_Text *fontPathNa
|
|||
|
||||
fUnitsPerEM = faceProperties.header->Units_Per_EM;
|
||||
|
||||
fAscent = (le_int32) yUnitsToPoints(faceProperties.horizontal->Ascender);
|
||||
fDescent = (le_int32) -yUnitsToPoints(faceProperties.horizontal->Descender);
|
||||
fLeading = (le_int32) yUnitsToPoints(faceProperties.horizontal->Line_Gap);
|
||||
fAscent = (le_int32) (yUnitsToPoints(faceProperties.horizontal->Ascender) * fDeviceScaleY);
|
||||
fDescent = (le_int32) -(yUnitsToPoints(faceProperties.horizontal->Descender) * fDeviceScaleY);
|
||||
fLeading = (le_int32) (yUnitsToPoints(faceProperties.horizontal->Line_Gap) * fDeviceScaleY);
|
||||
|
||||
// printf("Face = %s, unitsPerEM = %d, ascent = %d, descent = %d\n", fontPathName, fUnitsPerEM, fAscent, fDescent);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue