gdi32: Pick first charmap if none was selected using preferred encoding.

FreeType 2.8.1 has similar logic removed from WinFNT module,
that always pre-selected first charmap.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Nikolay Sivov 2017-09-26 10:13:47 +01:00 committed by Alexandre Julliard
parent 2bd5f6e057
commit d82321006d
1 changed files with 7 additions and 0 deletions

View File

@ -5143,6 +5143,13 @@ static FT_Encoding pick_charmap( FT_Face face, int charset )
if (select_charmap( face, *encs )) break;
encs++;
}
if (!face->charmap && face->num_charmaps)
{
if (!pFT_Set_Charmap(face, face->charmaps[0]))
return face->charmap->encoding;
}
return *encs;
}