home: host inter font ourselves

This commit is contained in:
2026-07-23 14:07:56 +01:00
parent 3b2d0335bd
commit b7e130a24e
7 changed files with 23 additions and 10 deletions
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -3,12 +3,12 @@
<head>
<meta charset="UTF-8" />
<title>atom.town</title>
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="style/fonts.css">
<link rel="stylesheet" href="style/reset.css">
<link rel="stylesheet" href="style/style.css">
<link rel="icon" type="image/png" href="assets/logo_icon.png">
<link rel="preload" as="image" href="assets/clouds.avif">
<link rel="preload" as="font" href="assets/InterVariable-Italic.woff2">
</head>
<body>
<img src="assets/logo.png" class="logo" />
+2 -2
View File
@@ -3,12 +3,12 @@
<head>
<meta charset="UTF-8" />
<title>atom.town</title>
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="style/fonts.css">
<link rel="stylesheet" href="style/reset.css">
<link rel="stylesheet" href="style/style.css">
<link rel="icon" type="image/png" href="assets/logo_icon.png">
<link rel="preload" as="image" href="assets/clouds.avif">
<link rel="preload" as="font" href="assets/InterVariable-Italic.woff2">
</head>
<body>
<img src="assets/logo.png" class="logo" />
+16
View File
@@ -0,0 +1,16 @@
/* http://rsms.me/inter/font-files/InterVariable.woff2 */
@font-face {
font-family: InterVariable;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("../assets/InterVariable.woff2") format('woff2');
}
/* http://rsms.me/inter/font-files/InterVariable-Italic.woff2 */
@font-face {
font-family: InterVariable;
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("../assets/InterVariable-Italic.woff2") format('woff2');
}
+1 -4
View File
@@ -1,9 +1,6 @@
:root {
font-family: Inter, sans-serif;
font-feature-settings: 'liga' 1, 'calt' 1;
@supports (font-variation-settings: normal) {
font-family: InterVariable, sans-serif;
}
font-feature-settings: 'liga' 1, 'calt' 1;
}
html {
+2 -2
View File
@@ -3,12 +3,12 @@
<head>
<meta charset="UTF-8" />
<title>atom.town</title>
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="style/fonts.css">
<link rel="stylesheet" href="style/reset.css">
<link rel="stylesheet" href="style/style.css">
<link rel="icon" type="image/png" href="assets/logo_icon.png">
<link rel="preload" as="image" href="assets/clouds.avif">
<link rel="preload" as="font" href="assets/InterVariable-Italic.woff2">
</head>
<body>
<img src="assets/logo.png" class="logo" />