I am learning how to use variable Google fonts and wrote this HTML:
<h1>This heading should be condensed.</h1>
with the following CSS:
@import url('https://fonts.googleapis.com/css2?family=Anybody:wdth,wght@50..200,100..700&display=swap');
h1 {
font-family: 'Anybody';
font-weight: 900;
font-stretch: 50%;
}
The font 'Anybody' supports width axis (https://fonts.google.com/knowledge/using_type/styling_type_on_the_web_with_variable_fonts) so why isn't the text condensed?
A demo on JSFiddle: https://jsfiddle.net/yr4h8wg1/