Alexander Toresson 3ed1927603 Fix for positioning of glyphs within a bitmap
For positioning of glyphs within a bitmap, roundf(int + float) is used,
where the float is the glyph position and the int is the text position.
When the text position is varied, this may lead to the sum being rounded
in different directions, due to floating point rounding, caused by that
floating point numbers have different precision in different ranges.

This may therefore lead to slightly different positioning for glyphs and
therefore slightly different widths and heights for text strings,
depending on the position they are rendered at.

The solution in this patch is to use int + (int) roundf(float), which
has consistent rounding, and also enables us to use the full range of
ints.

Change-Id: Id1143cdfcbdfa9915ced878ae04df589a3e03cee
2014-01-23 13:31:15 +01:00
..
2013-08-02 15:31:29 -07:00
2013-08-06 18:35:01 -07:00
2013-08-06 18:35:01 -07:00
2013-09-20 17:25:31 -07:00
2013-06-13 14:58:32 -07:00
2013-08-02 15:31:29 -07:00
2013-05-02 17:50:23 -07:00
2013-09-20 17:25:31 -07:00
2013-09-20 17:25:31 -07:00
2013-09-20 17:25:31 -07:00
2013-05-14 14:12:55 -07:00
2013-06-13 14:58:32 -07:00
2013-09-17 17:48:14 -07:00
2013-08-01 15:35:24 -07:00