Make test-size-params write size in points

This commit is contained in:
Behdad Esfahbod 2012-12-11 14:31:13 -05:00
parent 372fe2b67b
commit 9cf7f9d4f6
1 changed files with 4 additions and 14 deletions

View File

@ -84,20 +84,10 @@ main (int argc, char **argv)
hb_blob_destroy (blob);
blob = NULL;
unsigned int params[5];
if (!hb_ot_layout_get_size_params (face,
params,
params+1,
params+2,
params+3,
params+4))
return 1;
unsigned int p[5];
bool ret = hb_ot_layout_get_size_params (face, p, p+1, p+2, p+3, p+4);
for (unsigned int i = 0; i < 5; i++) {
if (i) printf (" ");
printf ("%u", params[i]);
}
printf ("\n");
printf ("%g %u %u %g %g\n", p[0]/10., p[1], p[2], p[3]/10., p[4]/10.);
return 0;
return !ret;
}