Skip to content

Commit

Permalink
improve webfont CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
thundernixon committed Apr 5, 2019
1 parent 5cd26d3 commit 11f505f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions distr/fira_code.css
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
@font-face {
font-family: 'Fira Code';
src: url('woff2/FiraCode-Light.woff2') format('woff2');
src: url('woff2/FiraCode-Light.woff2') format('woff2'),
url("woff2/FiraCode-Light.woff") format("woff");
font-weight: 300;
font-style: normal;
}

@font-face {
font-family: 'Fira Code';
src: url('woff2/FiraCode-Regular.woff2') format('woff2');
src: url('woff2/FiraCode-Regular.woff2') format('woff2'),
url("woff2/FiraCode-Regular.woff") format("woff");
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'Fira Code';
src: url('woff2/FiraCode-Medium.woff2') format('woff2');
src: url('woff2/FiraCode-Medium.woff2') format('woff2'),
url("woff2/FiraCode-Medium.woff") format("woff");
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: 'Fira Code';
src: url('woff2/FiraCode-Bold.woff2') format('woff2');
src: url('woff2/FiraCode-Bold.woff2') format('woff2'),
url("woff2/FiraCode-Bold.woff") format("woff");
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'Fira Code VF';
src: url('woff2/FiraCode-VF.woff2') format('woff2-variations');
src: url('woff2/FiraCode-VF.woff2') format('woff2-variations'),
url('woff/FiraCode-VF.woff') format('woff-variations');
/* font-weight requires a range: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide#Using_a_variable_font_font-face_changes */
font-weight: 300 700;
font-style: normal;
}

0 comments on commit 11f505f

Please sign in to comment.