gdiplus: Test for GdipGetFontStyle.

This commit is contained in:
Adam Petaccia 2008-08-27 17:21:49 -04:00 committed by Alexandre Julliard
parent 1bf919717d
commit 837dae3f73
1 changed files with 9 additions and 0 deletions

View File

@ -104,6 +104,7 @@ static void test_logfont(void)
GpStatus stat;
GpGraphics *graphics;
HDC hdc = GetDC(0);
INT style;
GdipCreateFromHDC(hdc, &graphics);
memset(&lfw, 0, sizeof(LOGFONTW));
@ -173,6 +174,14 @@ todo_wine {
expect(0, lfw2.lfQuality);
expect(0, lfw2.lfPitchAndFamily);
todo_wine
{
stat = GdipGetFontStyle(font, &style);
expect(Ok, stat);
ok (style == (FontStyleItalic | FontStyleUnderline | FontStyleStrikeout),
"Expected , got %d\n", style);
}
GdipDeleteFont(font);
GdipDeleteGraphics(graphics);