Make test-size-params write size in points

pull/1/merge
Behdad Esfahbod 12 years ago
parent 372fe2b67b
commit 9cf7f9d4f6
  1. 18
      src/test-size-params.cc

@ -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;
}

Loading…
Cancel
Save