Variable Fonts are still in active development […] in this article I’ll focus on what they mean for web developers, and how you can try them out today ahead of time.
Next to changes to font-weight
(which will allow increments of 1
), you also have fine control over a variable font its variations – see image above. One can tweak ‘m via the upcoming font-variation-settings
CSS Property:
p {
font-variation-settings:
'cntr' 99.9998,
'grad' 176,
'opsz' 13.999,
'srfr' 34.998,
'wdth' 803.999,
'wght' 175.98,
'xhgt' 999.988;
}
As mentioned in the post, variable fonts in CSS will land in production no earlier than mid-2018. Nonetheless it’s worth following already.
Leave a comment