4 ms·
Not entirely sure if the article is aimed at a web audience, but if it is, this would be an awkward justification because the unit "pixel" in CSS is normalized
by ss3000 7y ago
Not entirely sure if the article is aimed at a web audience, but if it is, this would be an awkward justification because the unit "pixel" in CSS is normalized w.r.t DPI.
- httpsterio 7y agoIn browsers yes for the most parts but not with images (like high dpi images needs to be specifically named and sized) but for example in android development the standard unit is dp aka. density-independent points and for ios development the unit is also points which is relative to the dpi used.
- amelius 7y agoOk, but what does 16pt (in the article) mean? I can't tell if it refers to an amount of pixels or an amount of mm. In the first case the amount of mm would be different for each display. In the second case the amount of pixels would be different for each display. Perhaps this quote from the article provides a hint: > Ok, I get the even number thing, but seriously, why not 6, or 10? The majority of popular screen sizes are divisible by 8 which makes for an easy fit. From this I'd say it is about pixels. But why call it "pt" then? And yes, how does this give useful results on high resolution displays? I think the article is really confusing.
- twic 7y ago16 pt = 16 * ~0.353 mm = 5.644 mm https://en.wikipedia.org/wiki/Point_(typography) https://en.wikipedia.org/wiki/Point_(typography)
- amelius 7y agoYou missed the point/pt ;) The point is that the author says that the screen size in pixels should be an integer multiple of 8pt, which doesn't make sense.