Skip to content

Commit

Permalink
Fonts via cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
bennihtm committed Oct 16, 2024
1 parent d75eb5c commit 32227c9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
10 changes: 2 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>awesomeBible Versepicker</title>
<link
rel="preload"
href="/font/InterVariable-v4.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<!-- <link rel="preload" href="/font/Inter-italic.var.woff2" as="font" type="font/woff2" crossorigin="anonymous"> -->
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="/font/inter.css" />
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions public/font/desktop.ini

This file was deleted.

13 changes: 11 additions & 2 deletions public/font/inter.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
/*
@font-face {
font-family: 'InterVariable';
font-weight: 100 900;
font-display: swap;
font-style: normal;
font-named-instance: 'Regular';
src: url('InterVariable-v4.woff2') format('woff2');
src: url('InterVariable.woff2?v=4') format('woff2');
}
@font-face {
font-family: 'InterVariable';
font-weight: 100 900;
font-display: swap;
font-style: italic;
font-named-instance: 'Italic';
src: url('InterVariable-Italic-v4.woff2') format('woff2');
src: url('InterVariable-Italic.woff2?v=4') format('woff2');
} */

:root {
font-family: Inter, sans-serif;
font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
:root { font-family: InterVariable, sans-serif; }
}

0 comments on commit 32227c9

Please sign in to comment.