gdiplus: Implement GdipGetCellAscent.
This commit is contained in:
parent
b5505f6326
commit
6fabc90219
|
@ -516,13 +516,14 @@ GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily *FontFamily)
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family, INT style, UINT16 * CellAscent)
|
GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family,
|
||||||
|
INT style, UINT16* CellAscent)
|
||||||
{
|
{
|
||||||
if (!(family && CellAscent)) return InvalidParameter;
|
if (!(family && CellAscent)) return InvalidParameter;
|
||||||
|
|
||||||
FIXME("stub!\n");
|
*CellAscent = family->tmw.tmAscent;
|
||||||
|
|
||||||
return NotImplemented;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family, INT style, UINT16 * CellDescent)
|
GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family, INT style, UINT16 * CellDescent)
|
||||||
|
|
|
@ -208,11 +208,14 @@ todo_wine
|
||||||
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);
|
||||||
ok(result == 1854, "Expected 1854, got %d\n", result);
|
ok(result == 1854, "Expected 1854, got %d\n", result);
|
||||||
result = 0;
|
result = 0;
|
||||||
|
todo_wine
|
||||||
|
{
|
||||||
stat = GdipGetCellDescent(FontFamily, FontStyleRegular, &result);
|
stat = GdipGetCellDescent(FontFamily, FontStyleRegular, &result);
|
||||||
ok(result == 434, "Expected 434, got %d\n", result);
|
ok(result == 434, "Expected 434, got %d\n", result);
|
||||||
}
|
}
|
||||||
|
@ -229,11 +232,14 @@ todo_wine
|
||||||
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);
|
||||||
ok(result == 1825, "Expected 1825, got %d\n", result);
|
ok(result == 1825, "Expected 1825, got %d\n", result);
|
||||||
result = 0;
|
result = 0;
|
||||||
|
todo_wine
|
||||||
|
{
|
||||||
stat = GdipGetCellDescent(FontFamily, FontStyleRegular, &result);
|
stat = GdipGetCellDescent(FontFamily, FontStyleRegular, &result);
|
||||||
ok(result == 443, "Expected 443 got %d\n", result);
|
ok(result == 443, "Expected 443 got %d\n", result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue