Skip to content

Instantly share code, notes, and snippets.

@CaptainN
Created June 21, 2018 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaptainN/d295fdcb0321edd2c63c73502038dcb0 to your computer and use it in GitHub Desktop.
Save CaptainN/d295fdcb0321edd2c63c73502038dcb0 to your computer and use it in GitHub Desktop.
variable web font with cascade
@font-face {
font-family: 'Avenir Variable';
src: url('/anv/anv-roman-var.woff2') format('woff2-variations');
src: url('/anv/anv-roman-var.woff2') format('woff2' supports variations);
font-weight: 1 999;
}
@font-face {
font-family: 'Avenir Static';
src: url('/anv/anv-medium.woff') format('woff');
font-weight: 500;
}
@font-face {
font-family: 'Avenir Static';
src: url('/anv/anv-heavy.woff') format('woff');
font-weight: 800;
}
@font-face {
font-family: 'Avenir Condensed Static';
src: url('/anv/anv-cond-medium.woff') format('woff');
font-weight: 500;
}
.someclass {
font-family: 'Avenir Variable', 'Avenir Static', sans-serif;
font-weight: 500;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment