-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-fonts-4] Better example needed for font-size-adjust
#2859
Comments
That whole section is utterly confusing.
The use of font-size-adjust how???
|
A good example would have two rules, setting different elements in two different font faces, which have very different x-heights. It would then use font-size-adjust to make the x-heights more similar. |
I made an example of this property at https://codepen.io/tigt/pen/MaeJEK It’s not quite perfect for your needs, as it also uses SVG’s |
Hmm, this is a bit hand-wavy, too:
What does "any font that is selected" mean? The same wording was in CSS Fonts 3. |
I put the old example from Fonts 3 into a codepen, calculated the x-height for Verdana and for Times New Roman, then used those values in the earlier example to make it clearer. |
@matthew-dean the first example now reads
|
From www.w3.org/TR/css-fonts-4/#font-size-adjust-prop ..."This is commonly referred to as the aspect value and is equal to the x-height of a font divided by the font size." Besides never having heard this term, "aspect value", I believe strongly that the documentation is incorrect. The scale value to match x-heights across fonts is determined by creating a ratio of the x-ht (in units per em) to units per em, to reach the fallback scale value between two such values. The "font size", as I understand the term is not used. |
The example for
font-size-adjust
is basically a hack explaining how to iteratively determine a vaue for a given font.It would be better replaced with an example that shows the nice result when the property is correctly applied.
The text was updated successfully, but these errors were encountered: