gfx: Fix imprecision in `float_to_fixed`.

Improves text rendering a lot.
auto merge of #3549 : pcwalton/servo/fix-float-to-fixed, r=zwarich

Improves text rendering a lot.

r? @zwarich