gdi32: Improve detection of symbol charset for old truetype fonts.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=33117
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-11-29 12:28:15 +03:00 committed by Alexandre Julliard
parent 9fd13a1a5e
commit 57c44885e5
1 changed files with 3 additions and 4 deletions

View File

@ -2014,7 +2014,6 @@ static inline void get_bitmap_size( FT_Face ft_face, Bitmap_Size *face_size )
static inline void get_fontsig( FT_Face ft_face, FONTSIGNATURE *fs )
{
TT_OS2 *os2;
FT_UInt dummy;
CHARSETINFO csi;
FT_WinFNT_HeaderRec winfnt_header;
int i;
@ -2031,10 +2030,10 @@ static inline void get_fontsig( FT_Face ft_face, FONTSIGNATURE *fs )
if (os2->version == 0)
{
if (pFT_Get_First_Char( ft_face, &dummy ) < 0x100)
fs->fsCsb[0] = FS_LATIN1;
else
if (os2->usFirstCharIndex >= 0xf000 && os2->usFirstCharIndex < 0xf100)
fs->fsCsb[0] = FS_SYMBOL;
else
fs->fsCsb[0] = FS_LATIN1;
}
else
{