4 ms·
How does sizing by pixel work when pixels are wildly different in size. As a designer why do I want text to be half the size for someone on a high resolution sc
by chrisseaton 7y ago
How does sizing by pixel work when pixels are wildly different in size. As a designer why do I want text to be half the size for someone on a high resolution screen?
- dhritzkiv 7y agoIsn't it up to the user to choose their preferred screen density? By this I mean something similar to the macOS' resolution scaling [1] [1] https://everymac.com/images/other_images/macbook-pro-retina-screenshot.jpg https://everymac.com/images/other_images/macbook-pro-retina-...
- chrisseaton 7y ago> Isn't it up to the user to choose their preferred screen density? The actual density of pixels is physically fixed in the hardware.
- Silhouette 7y agoBut a CSS px isn't a physical pixel. In practice, it often used to be, because a CSS px was conceived in terms of typical desktop displays before the higher DPI monitors and mobile devices we use today were around. However, 1px in CSS often corresponds to a 2x2 or even 3x3 set of pixels on modern screens with their much higher physical pixel densities.
- chrisseaton 7y agoWhy didn't they come up with a new unit if pixels don't mean anything any more?
- Silhouette 7y agoPixels in CSS do mean something, which is very clearly defined and which does related in a natural way to what a physical pixel would have been at the time. It's just that the definition adapts in a useful way to modern equipment as well, so dimensions specified in px for older screens still look roughly the same on newer ones.
- ravenstine 7y agoA pixel doesn't represent a hardware pixel. https://mindtheshift.wordpress.com/2015/04/02/r-i-p-rem-viva-css-reference-pixel/ https://mindtheshift.wordpress.com/2015/04/02/r-i-p-rem-viva... So knowing about the existence of the reference pixel, as someone who isn't a designer, I don't see why text would have to be half size on a high resolution screen. I've seen images targeted to pixel density, but fonts are vector so it doesn't seem necessary. Am I missing something?
- chrisseaton 7y agoWow so a pixel is actually a unit of angle, defined from inches of all units!
- flqn 7y agoOnly the css reference pixel. In other contexts a pixel is a point sample with no size
- chrisseaton 7y ago> a pixel is a point sample with no size They have pitches. When people talk about their size they mean the pitch.