提交 9cf7f9d4 编写于 作者: B Behdad Esfahbod

Make test-size-params write size in points

上级 372fe2b6
...@@ -84,20 +84,10 @@ main (int argc, char **argv) ...@@ -84,20 +84,10 @@ main (int argc, char **argv)
hb_blob_destroy (blob); hb_blob_destroy (blob);
blob = NULL; blob = NULL;
unsigned int params[5]; unsigned int p[5];
if (!hb_ot_layout_get_size_params (face, bool ret = hb_ot_layout_get_size_params (face, p, p+1, p+2, p+3, p+4);
params,
params+1,
params+2,
params+3,
params+4))
return 1;
for (unsigned int i = 0; i < 5; i++) { printf ("%g %u %u %g %g\n", p[0]/10., p[1], p[2], p[3]/10., p[4]/10.);
if (i) printf (" ");
printf ("%u", params[i]);
}
printf ("\n");
return 0; return !ret;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册