gdi32: Adjust bitmap font height when it has an external leading.

This fixes wine test failures in Japanese locale.
This commit is contained in:
Akihiro Sagawa 2013-07-31 23:16:28 +09:00 committed by Alexandre Julliard
parent dc241a8371
commit 7444c1d6b0

View File

@ -1910,8 +1910,13 @@ static inline void get_bitmap_size( FT_Face ft_face, Bitmap_Size *face_size )
face_size->x_ppem = size->x_ppem;
face_size->y_ppem = size->y_ppem;
if (!pFT_Get_WinFNT_Header( ft_face, &winfnt_header ))
if (!pFT_Get_WinFNT_Header( ft_face, &winfnt_header )) {
face_size->internal_leading = winfnt_header.internal_leading;
if (winfnt_header.external_leading > 0 &&
(face_size->height ==
winfnt_header.pixel_height + winfnt_header.external_leading))
face_size->height = winfnt_header.pixel_height;
}
}
static inline void get_fontsig( FT_Face ft_face, FONTSIGNATURE *fs )