Fixes to font rendering and rounding errors maths.