gdiplus: Implement GdipGetFamily.
This commit is contained in:
parent
837dae3f73
commit
69b6e0bde2
|
@ -265,9 +265,12 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
|
||||||
*/
|
*/
|
||||||
GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
|
GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
|
||||||
{
|
{
|
||||||
FIXME("stub: %p %p\n", font, family);
|
TRACE("%p %p\n", font, family);
|
||||||
|
|
||||||
return NotImplemented;
|
if (!(font && family))
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
return GdipCreateFontFamilyFromName(font->lfw.lfFaceName, NULL, family);
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
|
|
@ -67,11 +67,9 @@ static void test_createfont(void)
|
||||||
expect (UnitPoint, unit);
|
expect (UnitPoint, unit);
|
||||||
|
|
||||||
stat = GdipGetFamily(font, &fontfamily2);
|
stat = GdipGetFamily(font, &fontfamily2);
|
||||||
todo_wine
|
|
||||||
expect(Ok, stat);
|
expect(Ok, stat);
|
||||||
stat = GdipGetFamilyName(fontfamily2, familyname, 0);
|
stat = GdipGetFamilyName(fontfamily2, familyname, 0);
|
||||||
expect(Ok, stat);
|
expect(Ok, stat);
|
||||||
todo_wine
|
|
||||||
ok (lstrcmpiW(arial, familyname) == 0, "Expected arial, got %s\n",
|
ok (lstrcmpiW(arial, familyname) == 0, "Expected arial, got %s\n",
|
||||||
debugstr_w(familyname));
|
debugstr_w(familyname));
|
||||||
stat = GdipDeleteFontFamily(fontfamily2);
|
stat = GdipDeleteFontFamily(fontfamily2);
|
||||||
|
|
Loading…
Reference in New Issue