Replies: 2 comments 1 reply
-
Associated with this are some questions regarding the CSS reference px and ultimate screen site. What is important is the visual angle, i.e., the size of the image as it is projected onto the retina. Here's a chart that illustrates this. For a given distance from the screen, the screen pixel density that results in one device pixel equalling one CSS reference px: So for instance, a phone is used 12" to 16" away. At least for the high-end phones like Apple or Samsung, the effective logical pixel density is about 165ppi to 224ppi, which is in the same ballpark as a 96ppi screen that is 28" away. Apple indicates their phones are expected to be used around 12" to 16" away, but they are "retina" displays so they are double or triple the dimensions of a regular display, though the logical px is then a half or a third of the physical display. I.e. a 326ppi retina display is effectvely a 163ppi display, as far as how the CSS reference px renders to it. Essentially, 1 px equals 4 physical pixels. Some of their newer phones are 460 with a 3x factor, so 1px equals 9 physical pixels. Even so, for iOS and MacOS, the user can make adjustments in terms of how large a is displayed size-wise. TL;DRDevice manufacturers plan their devices based on visual angle, so again the CSS reference px is the canonical unit that is the one commonality across device types. Thank you Andy |
Beta Was this translation helpful? Give feedback.
-
Hi @Myndex does the font-size-adjust property assist at all in this need? My recommendation is that we could discuss the practical need in the LVTF guidance but that you should work with the CSS working Group or more broadly with the other groups like APA to discuss this topic: https://www.w3.org/WAI/APA/ |
Beta Was this translation helpful? Give feedback.
-
One thing Ive been repeating over the last few years is the need for a useful property in CSS to set a font size based on its x-height. Setting font size using the
font-size:
property is less than ideal, as the relationship between the actual glyphs in a font and the 'font size" is inconsistent at best.I have a live demonstrator page with ample examples.
Here's a screenshot of one part. Every sample font on this page is set to 24px. Every one. Yet they very in size by more than two fold. If a font has a typical x-height ratio of 0.5:1. then the x-height would be 12px, if the font-size was set at 24px. But in the below example, the font "Chathura" renders an x-height of only 9.8px, while "Orbitron" is over 19.3px.
As we know, font-size is critical for readability — and we've been talking about setting a minimum size. But what good is a minimum size of, say, 14px, when a font like Chathura at 14px will render a tiny ureadable 5.7px ???
For reference, here's a chart that presents the user font size needs for various acuity levels. This is a new version created today to better define the critical font sizes:
EDIT: Updated Chart
TL;DR
We need the new
font-x-size:
property I've proposed — now, what are best steps to be proactive with this?Thank you
Andy
Beta Was this translation helpful? Give feedback.
All reactions