Commit f0267395 authored by Byeongsik Jeon's avatar Byeongsik Jeon Committed by Alexandre Julliard

gdi32: Preserve the GGO_UNHINTED bits until used.

Fix a regression caused by 044315c0. Signed-off-by: 's avatarByeongsik Jeon <bsjeon@hanmail.net> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent dac655ab
...@@ -2955,6 +2955,7 @@ static DWORD get_glyph_outline( struct gdi_font *font, UINT glyph, UINT format, ...@@ -2955,6 +2955,7 @@ static DWORD get_glyph_outline( struct gdi_font *font, UINT glyph, UINT format,
/* Windows bitmap font, e.g. Small Fonts, uses ANSI character code /* Windows bitmap font, e.g. Small Fonts, uses ANSI character code
as glyph index. "Treasure Adventure Game" depends on this. */ as glyph index. "Treasure Adventure Game" depends on this. */
font_funcs->get_glyph_index( font, &index, FALSE ); font_funcs->get_glyph_index( font, &index, FALSE );
format &= ~GGO_GLYPH_INDEX;
/* TODO: Window also turns off tategaki for glyphs passed in by index /* TODO: Window also turns off tategaki for glyphs passed in by index
if their unicode code points fall outside of the range that is if their unicode code points fall outside of the range that is
rotated. */ rotated. */
...@@ -2970,8 +2971,6 @@ static DWORD get_glyph_outline( struct gdi_font *font, UINT glyph, UINT format, ...@@ -2970,8 +2971,6 @@ static DWORD get_glyph_outline( struct gdi_font *font, UINT glyph, UINT format,
} }
} }
format &= ~(GGO_GLYPH_INDEX | GGO_UNHINTED);
if (mat && !memcmp( mat, &identity, sizeof(*mat) )) mat = NULL; if (mat && !memcmp( mat, &identity, sizeof(*mat) )) mat = NULL;
if (format == GGO_METRICS && !mat && get_gdi_font_glyph_metrics( font, index, &gm, &abc )) if (format == GGO_METRICS && !mat && get_gdi_font_glyph_metrics( font, index, &gm, &abc ))
......
...@@ -3515,6 +3515,8 @@ static DWORD CDECL freetype_get_glyph_outline( struct gdi_font *font, UINT glyph ...@@ -3515,6 +3515,8 @@ static DWORD CDECL freetype_get_glyph_outline( struct gdi_font *font, UINT glyph
font->matrix.eM11, font->matrix.eM12, font->matrix.eM11, font->matrix.eM12,
font->matrix.eM21, font->matrix.eM22); font->matrix.eM21, font->matrix.eM22);
format &= ~GGO_UNHINTED;
needsTransform = get_transform_matrices( font, tategaki, lpmat, matrices ); needsTransform = get_transform_matrices( font, tategaki, lpmat, matrices );
vertical_metrics = (tategaki && FT_HAS_VERTICAL(ft_face)); vertical_metrics = (tategaki && FT_HAS_VERTICAL(ft_face));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment