Commit 533d800d authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdi32: Cleanup otmfsType bit mask from reserved bits.

parent be287422
......@@ -7914,7 +7914,8 @@ static BOOL get_outline_text_metrics(GdiFont *font)
font->potm->otmfsSelection |= 1;
if (font->fake_bold)
font->potm->otmfsSelection |= 1 << 5;
font->potm->otmfsType = pOS2->fsType;
/* Only return valid bits that define embedding and subsetting restrictions */
font->potm->otmfsType = pOS2->fsType & 0x30e;
font->potm->otmsCharSlopeRise = pHori->caret_Slope_Rise;
font->potm->otmsCharSlopeRun = pHori->caret_Slope_Run;
font->potm->otmItalicAngle = 0; /* POST table */
......
......@@ -5676,7 +5676,6 @@ static void test_fstype_fixup(void)
/* Test font has fsType set to 0x7fff, test that reserved bits are filtered out,
valid bits are 1, 2, 3, 8, 9. */
todo_wine
ok((otm->otmfsType & ~0x30e) == 0, "fsType %#x\n", otm->otmfsType);
HeapFree(GetProcessHeap(), 0, otm);
......
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