mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
gdi32: Adjust bitmap font height when it has an external leading.
This fixes wine test failures in Japanese locale.
This commit is contained in:
parent
dc241a8371
commit
7444c1d6b0
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user