Skip to content

Commit

Permalink
Fix font paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfbiedert committed Dec 9, 2021
1 parent 8e4f734 commit 5dd6e75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions static/font-firacode.css
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
@font-face {
font-family: 'Fira Code';
src: url('woff2/FiraCode-Light.woff2') format('woff2');
src: url('fonts/FiraCode-Light.woff2') format('woff2');
font-weight: 300;
font-style: normal;
}

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

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

@font-face {
font-family: 'Fira Code';
src: url('woff2/FiraCode-SemiBold.woff2') format('woff2');
src: url('fonts/FiraCode-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
}

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

@font-face {
font-family: 'Fira Code VF';
src: url('woff2/FiraCode-VF.woff2') format('woff2-variations');
src: url('fonts/FiraCode-VF.woff2') format('woff2-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;
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<!-- CSS -->
<link rel="stylesheet" href="font-opensans.css" />
<link rel="stylesheet" href="font-jetbrains.css" />
<link rel="stylesheet" href="font-firacode.css" />
<link rel="stylesheet" href="main.css" />
</head>

Expand Down

0 comments on commit 5dd6e75

Please sign in to comment.