PistonDevelopers / gfx_text

Draw text for gfx using freetype
http://docs.piston.rs/gfx_text/gfx_text/
MIT License
22 stars 12 forks source link

Retina screen support #3

Open bvssvni opened 9 years ago

bvssvni commented 9 years ago

On retina screens, the frame buffer is twice the size of the internal window size in each direction. When one renders text, one might want to compensate for this. In piston-graphics this is done through the viewport library https://github.com/pistondevelopers/viewport

bvssvni commented 9 years ago

We might want to compute a column major transform matrix in the viewport library, since this is common for 3D.

retep998 commented 9 years ago

Don't forget that Windows has arbitrary DPI scaling.

bvssvni commented 9 years ago

The viewport library assumes arbitrary draw width/height so it should be fine.