3 ms·
One cool thing about the way that Apple do drawing is that (at least on iOS, I think on OS X too (CG* APIs) - I'm making the assumption this is a PostScript/Dis
by kalleboo 13y ago
One cool thing about the way that Apple do drawing is that (at least on iOS, I think on OS X too (CG* APIs) - I'm making the assumption this is a PostScript/Display PostScript holdover) the drawing APIs use floats for positioning instead of integers. So a retina pixel is just a whole number pixel+0.5. This was a pain before retina screens appeared, since anything not positioned on a whole number would render blurry. But then retina displays appeared and the reason for it clicked.
- eropple 13y agoI doubt it's because of HiDPI. I expect it comes more from the GL heritage inherent in the system, where the pixel/texel ratio can be anything you want.
- wtallis 13y agoNo, he got it right the first time: it's due to the PostScript heritage. Cocoa predates OpenGL. Back in the '80s, HiDPI was called print resolution, and applications used the same commands to draw to screen or paper years before TrueType was available. (Though NeXT systems did typically use raster fonts for most on-screen use because PS wasn't very good at antialiasing or hinting.)