Fix retina support for font rendering and input.

Dynamic retina switching is still not supported since it requires dynamic font size.