gdi32: Fix the regression caused by the scaling font metrics patch.

This commit is contained in:
Dmitry Timoshkov 2008-01-09 21:58:00 +08:00 committed by Alexandre Julliard
parent d179665035
commit 92a74a8271
1 changed files with 5 additions and 3 deletions

View File

@ -3125,13 +3125,15 @@ found:
TRACE("Chosen: %s %s (%s/%p:%ld)\n", debugstr_w(family->FamilyName),
debugstr_w(face->StyleName), face->file, face->font_data_ptr, face->face_index);
ret->ppem = height;
ret->aveWidth = abs(lf.lfWidth);
ret->scale_x = 0.0;
ret->scale_y = 0.0;
ret->aveWidth = abs(lf.lfWidth);
if(!face->scalable) {
ret->ppem = face->size.height;
if (height != 0) ret->ppem += diff;
width = face->size.x_ppem >> 6;
height = face->size.y_ppem >> 6;
}