Make subpixel positioning match that of Gecko.
Simplify the quantization function, and add unit tests. Modify the shader to correctly add the glyph subpixel offset before truncating the value. With these changes, the glyph rendering is pixel-perfect with Gecko in all the test cases I checked. Fixes #1270.