gdiplus: Implement GdipGetEmHeight.
This commit is contained in:
parent
e96b07d73f
commit
d17d566412
@ -554,9 +554,12 @@ GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, U
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -204,11 +204,11 @@ todo_wine
|
||||
stat = GdipGetLineSpacing(FontFamily, FontStyleRegular, &result);
|
||||
expect(Ok, stat);
|
||||
ok (result == 2355, "Expected 2355, got %d\n", result);
|
||||
}
|
||||
result = 0;
|
||||
stat = GdipGetEmHeight(FontFamily, FontStyleRegular, &result);
|
||||
expect(Ok, stat);
|
||||
ok(result == 2048, "Expected 2048, got %d\n", result);
|
||||
}
|
||||
result = 0;
|
||||
stat = GdipGetCellAscent(FontFamily, FontStyleRegular, &result);
|
||||
expect(Ok, stat);
|
||||
@ -225,11 +225,11 @@ todo_wine
|
||||
stat = GdipGetLineSpacing(FontFamily, FontStyleRegular, &result);
|
||||
expect(Ok, stat);
|
||||
ok(result == 2355, "Expected 2355, got %d\n", result);
|
||||
}
|
||||
result = 0;
|
||||
stat = GdipGetEmHeight(FontFamily, FontStyleRegular, &result);
|
||||
expect(Ok, stat);
|
||||
ok(result == 2048, "Expected 2048, got %d\n", result);
|
||||
}
|
||||
result = 0;
|
||||
stat = GdipGetCellAscent(FontFamily, FontStyleRegular, &result);
|
||||
expect(Ok, stat);
|
||||
|
Loading…
x
Reference in New Issue
Block a user