diff options
Diffstat (limited to 'test/oldfminit.c')
-rw-r--r-- | test/oldfminit.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/oldfminit.c b/test/oldfminit.c index b545e9a..c554499 100644 --- a/test/oldfminit.c +++ b/test/oldfminit.c @@ -287,13 +287,12 @@ int main(int argc, const char **argv) assert(0 == uline_thickness); assert(rufl_OK == rufl_width("Corpus", rufl_WEIGHT_500, 160, - (const uint8_t *) "!\xc2\xa0", 3, &width)); + "!\xc2\xa0", 3, &width)); assert(50 == width); /* Place caret after first character */ assert(rufl_OK == rufl_x_to_offset("Homerton", rufl_WEIGHT_500, 160, - (const uint8_t *) "!\xc2\xa0", 3, 25, - &offset, &x)); + "!\xc2\xa0", 3, 25, &offset, &x)); assert(1 == offset); assert(25 == x); @@ -301,17 +300,16 @@ int main(int argc, const char **argv) * coincident with the start of the second character, however, * the split point is placed after it. */ assert(rufl_OK == rufl_split("Trinity", rufl_WEIGHT_500, 160, - (const uint8_t *) "!\xc2\xa0", 3, 25, - &offset, &x)); + "!\xc2\xa0", 3, 25, &offset, &x)); assert(3 == offset); assert(50 == x); /* Compute width of replacement character */ assert(rufl_OK == rufl_width("Corpus", rufl_WEIGHT_500, 160, - (const uint8_t *) "\xef\xbf\xbd", 3, &width)); + "\xef\xbf\xbd", 3, &width)); assert(17 == width); assert(rufl_OK == rufl_width("Corpus", rufl_WEIGHT_500, 160, - (const uint8_t *) "\xf0\xa0\x80\xa5", 4, &width)); + "\xf0\xa0\x80\xa5", 4, &width)); assert(26 == width); /* Measure font bounding box */ @@ -324,13 +322,13 @@ int main(int argc, const char **argv) /* Trivial render */ assert(rufl_OK == rufl_paint("Trinity", rufl_WEIGHT_500, 160, - (const uint8_t *) "!\xc2\xa0", 3, 0, 0, 0)); + "!\xc2\xa0", 3, 0, 0, 0)); rufl_dump_state(true); /* Obtain metrics for a glyph */ assert(rufl_OK == rufl_glyph_metrics("Homerton", rufl_WEIGHT_500, 160, - (const uint8_t *) "!", 1, &x_bearing, &y_bearing, + "!", 1, &x_bearing, &y_bearing, &mwidth, &mheight, &x_advance, &y_advance)); assert(0 == x_bearing); assert(10000 == y_bearing); |