Changes for qnx(photon) platform only. They should not affect building/runtime other platforms.

The height of characters was calculated incorrectly in nsFontMetricsPh, leading to an error
in the email composition window ( non html composing, moving the cursor with keyboard will make the cursor
jump at the end of lines ).
This commit is contained in:
amardare%qnx.com 2004-06-02 14:15:03 +00:00
Родитель 9c21f95baa
Коммит be288667d6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -240,7 +240,7 @@ printf( "\tCall PfLoadMetrics for NSFullFontName=%s\n", NSFullFontName );
dev2app = mDeviceContext->DevUnitsToAppUnits();
onePixel = NSToCoordRound(1 * dev2app);
height = node->descender - node->ascender + 1.0;
height = node->descender - node->ascender;
PfExtent( &extent, NULL, NSFullFontName, 0L, 0L, " ", 1, PF_SIMPLE_METRICS, NULL );
mSpaceWidth = NSToCoordRound((extent.lr.x - extent.ul.x + 1) * dev2app);