gdiplus: Implement GdipGetEmHeight.

This commit is contained in:
Adam Petaccia 2008-07-03 14:27:02 -04:00 committed by Alexandre Julliard
parent e96b07d73f
commit d17d566412
2 changed files with 7 additions and 4 deletions

View File

@ -554,9 +554,12 @@ GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, U
{ {
if (!(family && EmHeight)) return InvalidParameter; if (!(family && EmHeight)) return InvalidParameter;
FIXME("Stub!\n"); TRACE("%p (%s), %d, %p, stub!\n", family,
debugstr_w(family->FamilyName), style, EmHeight);
return NotImplemented; *EmHeight = family->tmw.ntmSizeEM;
return Ok;
} }

View File

@ -204,11 +204,11 @@ todo_wine
stat = GdipGetLineSpacing(FontFamily, FontStyleRegular, &result); stat = GdipGetLineSpacing(FontFamily, FontStyleRegular, &result);
expect(Ok, stat); expect(Ok, stat);
ok (result == 2355, "Expected 2355, got %d\n", result); ok (result == 2355, "Expected 2355, got %d\n", result);
}
result = 0; result = 0;
stat = GdipGetEmHeight(FontFamily, FontStyleRegular, &result); stat = GdipGetEmHeight(FontFamily, FontStyleRegular, &result);
expect(Ok, stat); expect(Ok, stat);
ok(result == 2048, "Expected 2048, got %d\n", result); ok(result == 2048, "Expected 2048, got %d\n", result);
}
result = 0; result = 0;
stat = GdipGetCellAscent(FontFamily, FontStyleRegular, &result); stat = GdipGetCellAscent(FontFamily, FontStyleRegular, &result);
expect(Ok, stat); expect(Ok, stat);
@ -225,11 +225,11 @@ todo_wine
stat = GdipGetLineSpacing(FontFamily, FontStyleRegular, &result); stat = GdipGetLineSpacing(FontFamily, FontStyleRegular, &result);
expect(Ok, stat); expect(Ok, stat);
ok(result == 2355, "Expected 2355, got %d\n", result); ok(result == 2355, "Expected 2355, got %d\n", result);
}
result = 0; result = 0;
stat = GdipGetEmHeight(FontFamily, FontStyleRegular, &result); stat = GdipGetEmHeight(FontFamily, FontStyleRegular, &result);
expect(Ok, stat); expect(Ok, stat);
ok(result == 2048, "Expected 2048, got %d\n", result); ok(result == 2048, "Expected 2048, got %d\n", result);
}
result = 0; result = 0;
stat = GdipGetCellAscent(FontFamily, FontStyleRegular, &result); stat = GdipGetCellAscent(FontFamily, FontStyleRegular, &result);
expect(Ok, stat); expect(Ok, stat);