ok(hr==D3DERR_INVALIDCALL,"ID3DXFont_GetDevice returned %#x, expected %#x\n",hr,D3DERR_INVALIDCALL);
hr=ID3DXFont_GetDescA(font,&desc);
ok(hr==D3D_OK,"ID3DXFont_GetDevice returned %#x, expected %#x\n",hr,D3D_OK);
ok(desc.Height==12,"ID3DXFont_GetDesc returned font height %d, expected %d\n",desc.Height,12);
ok(desc.Width==8,"ID3DXFont_GetDesc returned font width %d, expected %d\n",desc.Width,8);
ok(desc.Weight==FW_BOLD,"ID3DXFont_GetDesc returned font weight %d, expected %d\n",desc.Weight,FW_BOLD);
ok(desc.MipLevels==2,"ID3DXFont_GetDesc returned font miplevels %d, expected %d\n",desc.MipLevels,2);
ok(desc.Italic==TRUE,"ID3DXFont_GetDesc says Italic was %d, but Italic should be %d\n",desc.Italic,TRUE);
ok(desc.CharSet==ANSI_CHARSET,"ID3DXFont_GetDesc returned font charset %d, expected %d\n",desc.CharSet,ANSI_CHARSET);
ok(desc.OutputPrecision==OUT_RASTER_PRECIS,"ID3DXFont_GetDesc returned an output precision of %d, expected %d\n",desc.OutputPrecision,OUT_RASTER_PRECIS);
ok(desc.Quality==ANTIALIASED_QUALITY,"ID3DXFont_GetDesc returned font quality %d, expected %d\n",desc.Quality,ANTIALIASED_QUALITY);
ok(desc.PitchAndFamily==VARIABLE_PITCH,"ID3DXFont_GetDesc returned pitch and family %d, expected %d\n",desc.PitchAndFamily,VARIABLE_PITCH);
ok(strcmp(desc.FaceName,"Arial")==0,"ID3DXFont_GetDesc returned facename \"%s\", expected \"%s\"\n",desc.FaceName,"Arial");
ID3DXFont_Release(font);
}elseskip("Failed to create a ID3DXFont object\n");
ok(metrics.tmStruckOut==expmetrics.tmStruckOut,"Returned struck out %d, expected %d\n",metrics.tmStruckOut,expmetrics.tmStruckOut);
ok(metrics.tmPitchAndFamily==expmetrics.tmPitchAndFamily,"Returned pitch and family %d, expected %d\n",metrics.tmPitchAndFamily,expmetrics.tmPitchAndFamily);