Spaces:
Running
Running
Split the serif font so the host serves it directly
Browse files- .gitattributes +0 -1
- assets/fonts/source-serif-4-core.woff2 +0 -0
- assets/fonts/source-serif-4-ext.woff2 +0 -0
- assets/fonts/source-serif-4-latin.woff2 +0 -3
- index.html +1 -1
- privacy.html +1 -1
- styles.css +12 -1
.gitattributes
CHANGED
|
@@ -33,4 +33,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
assets/fonts/source-serif-4-latin.woff2 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
assets/fonts/source-serif-4-core.woff2
ADDED
|
Binary file (36 kB). View file
|
|
|
assets/fonts/source-serif-4-ext.woff2
ADDED
|
Binary file (25.8 kB). View file
|
|
|
assets/fonts/source-serif-4-latin.woff2
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b878374ea12dd2547c95e6e439423ad50ef08d2026603c0e24e86174c54a9f81
|
| 3 |
-
size 55524
|
|
|
|
|
|
|
|
|
|
|
|
index.html
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
<meta name="twitter:card" content="summary_large_image">
|
| 18 |
<link rel="icon" href="assets/mark.svg" type="image/svg+xml">
|
| 19 |
<link rel="preload" href="assets/fonts/ibm-plex-sans-latin.woff2" as="font" type="font/woff2" crossorigin>
|
| 20 |
-
<link rel="preload" href="assets/fonts/source-serif-4-
|
| 21 |
<link rel="stylesheet" href="styles.css">
|
| 22 |
<script src="site.js" defer></script>
|
| 23 |
</head>
|
|
|
|
| 17 |
<meta name="twitter:card" content="summary_large_image">
|
| 18 |
<link rel="icon" href="assets/mark.svg" type="image/svg+xml">
|
| 19 |
<link rel="preload" href="assets/fonts/ibm-plex-sans-latin.woff2" as="font" type="font/woff2" crossorigin>
|
| 20 |
+
<link rel="preload" href="assets/fonts/source-serif-4-core.woff2" as="font" type="font/woff2" crossorigin>
|
| 21 |
<link rel="stylesheet" href="styles.css">
|
| 22 |
<script src="site.js" defer></script>
|
| 23 |
</head>
|
privacy.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
<link rel="canonical" href="https://www.privacynote.health/privacy.html">
|
| 10 |
<link rel="icon" href="assets/mark.svg" type="image/svg+xml">
|
| 11 |
<link rel="preload" href="assets/fonts/ibm-plex-sans-latin.woff2" as="font" type="font/woff2" crossorigin>
|
| 12 |
-
<link rel="preload" href="assets/fonts/source-serif-4-
|
| 13 |
<link rel="stylesheet" href="styles.css">
|
| 14 |
<script src="site.js" defer></script>
|
| 15 |
</head>
|
|
|
|
| 9 |
<link rel="canonical" href="https://www.privacynote.health/privacy.html">
|
| 10 |
<link rel="icon" href="assets/mark.svg" type="image/svg+xml">
|
| 11 |
<link rel="preload" href="assets/fonts/ibm-plex-sans-latin.woff2" as="font" type="font/woff2" crossorigin>
|
| 12 |
+
<link rel="preload" href="assets/fonts/source-serif-4-core.woff2" as="font" type="font/woff2" crossorigin>
|
| 13 |
<link rel="stylesheet" href="styles.css">
|
| 14 |
<script src="site.js" defer></script>
|
| 15 |
</head>
|
styles.css
CHANGED
|
@@ -7,12 +7,23 @@
|
|
| 7 |
font-display: swap;
|
| 8 |
src: url("assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
|
| 9 |
}
|
|
|
|
|
|
|
| 10 |
@font-face {
|
| 11 |
font-family: "Source Serif 4";
|
| 12 |
font-style: normal;
|
| 13 |
font-weight: 400 600;
|
| 14 |
font-display: swap;
|
| 15 |
-
src: url("assets/fonts/source-serif-4-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
:root {
|
|
|
|
| 7 |
font-display: swap;
|
| 8 |
src: url("assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
|
| 9 |
}
|
| 10 |
+
/* Source Serif 4 is split in two so each file is served directly by the host (under 40 KB).
|
| 11 |
+
The site uses it at 22-64 px in weights 400 and 600, which these files cover in full. */
|
| 12 |
@font-face {
|
| 13 |
font-family: "Source Serif 4";
|
| 14 |
font-style: normal;
|
| 15 |
font-weight: 400 600;
|
| 16 |
font-display: swap;
|
| 17 |
+
src: url("assets/fonts/source-serif-4-core.woff2") format("woff2");
|
| 18 |
+
unicode-range: U+0020-007E, U+00A0, U+00B7, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
|
| 19 |
+
}
|
| 20 |
+
@font-face {
|
| 21 |
+
font-family: "Source Serif 4";
|
| 22 |
+
font-style: normal;
|
| 23 |
+
font-weight: 400 600;
|
| 24 |
+
font-display: swap;
|
| 25 |
+
src: url("assets/fonts/source-serif-4-ext.woff2") format("woff2");
|
| 26 |
+
unicode-range: U+00A1-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2002, U+2009, U+200B, U+201A, U+201E, U+2022, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
|
| 27 |
}
|
| 28 |
|
| 29 |
:root {
|