mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 17:44:07 +00:00
gdi32: Retry with hinting disabled if glyph load failed in hinted mode.
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
daff3be7d2
commit
dc9267dc1c
|
@ -7620,9 +7620,15 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
|
|||
if (vertical_metrics) load_flags |= FT_LOAD_VERTICAL_LAYOUT;
|
||||
|
||||
err = pFT_Load_Glyph(ft_face, glyph_index, load_flags);
|
||||
if (err && !(load_flags & FT_LOAD_NO_HINTING))
|
||||
{
|
||||
WARN("Failed to load glyph %#x, retrying without hinting. Error %#x.\n", glyph_index, err);
|
||||
load_flags |= FT_LOAD_NO_HINTING;
|
||||
err = pFT_Load_Glyph(ft_face, glyph_index, load_flags);
|
||||
}
|
||||
|
||||
if(err) {
|
||||
WARN("FT_Load_Glyph on index %x returns %d\n", glyph_index, err);
|
||||
WARN("Failed to load glyph %#x, error %#x.\n", glyph_index, err);
|
||||
return GDI_ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue