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>
This commit is contained in:
parent
2bd5f6e057
commit
d82321006d
|
@ -5143,6 +5143,13 @@ static FT_Encoding pick_charmap( FT_Face face, int charset )
|
||||||
if (select_charmap( face, *encs )) break;
|
if (select_charmap( face, *encs )) break;
|
||||||
encs++;
|
encs++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!face->charmap && face->num_charmaps)
|
||||||
|
{
|
||||||
|
if (!pFT_Set_Charmap(face, face->charmaps[0]))
|
||||||
|
return face->charmap->encoding;
|
||||||
|
}
|
||||||
|
|
||||||
return *encs;
|
return *encs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue