[config] Make test build under HB_TINY

This commit is contained in:
Behdad Esfahbod 2019-06-21 00:42:06 -07:00
parent 12cec6c12e
commit ccea7fa119
1 changed files with 7 additions and 2 deletions

View File

@ -45,10 +45,15 @@ main (int argc, char **argv)
hb_blob_destroy (blob);
blob = nullptr;
unsigned int p[5];
bool ret = hb_ot_layout_get_size_params (face, p, p+1, (p+2), p+3, p+4);
bool ret = true;
#ifndef HB_NO_LAYOUT_FEATURE_PARAMS
unsigned int p[5];
ret = hb_ot_layout_get_size_params (face, p, p+1, (p+2), p+3, p+4);
printf ("%g %u %u %g %g\n", p[0]/10., p[1], p[2], p[3]/10., p[4]/10.);
#endif
hb_face_destroy (face);
return !ret;
}