From ee24c09da0f107042b1f5b4c860653f57fc5b6f9 Mon Sep 17 00:00:00 2001 From: Eric Mader Date: Thu, 4 Apr 2002 19:08:33 +0000 Subject: [PATCH] ICU-1428 need to scale ascent, descent and leading by fDeviceScaleFactorY X-SVN-Rev: 8378 --- icu4c/source/samples/layout/GnomeFontInstance.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4c/source/samples/layout/GnomeFontInstance.cpp b/icu4c/source/samples/layout/GnomeFontInstance.cpp index c1165cd5b97..ee2b75c3bbe 100644 --- a/icu4c/source/samples/layout/GnomeFontInstance.cpp +++ b/icu4c/source/samples/layout/GnomeFontInstance.cpp @@ -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);