Skip to content

Commit ead44b8

Browse files
authored
css: remove "Inter" custom font #369
Problem: Sometimes loading the page takes 5+ seconds, and the browser Network view shows these files causing the delay: https://neovim.io/fonts/inter/inter.css https://neovim.io/fonts/inter/Inter-italic.var.woff2?v=3.19 https://neovim.io/fonts/inter/Inter-roman.var.woff2?v=3.19 Solution: Drop the use of the custom "Inter" font. It doesn't look much different than the standard font, AFAICT.
1 parent 7f44278 commit ead44b8

10 files changed

+2
-141
lines changed

css/main.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
@import "../fonts/inter/inter.css";
2-
31
:root {
42
--main-breakpoint: 60em;
53

6-
--sans-serif-fonts: "Inter", var(--bs-font-sans-serif);
4+
--sans-serif-fonts: var(--bs-font-sans-serif);
75

86
/* Colors */
97
/* Hue is between neovim green and blue for text/background */
@@ -43,7 +41,7 @@
4341

4442
@supports (font-variation-settings: normal) {
4543
:root {
46-
--sans-serif-fonts: "Inter var", var(--bs-font-sans-serif);
44+
--sans-serif-fonts: var(--bs-font-sans-serif);
4745
}
4846
}
4947

fonts/inter/Inter-Bold.woff2

-104 KB
Binary file not shown.

fonts/inter/Inter-Italic.woff2

-104 KB
Binary file not shown.

fonts/inter/Inter-Regular.woff

-131 KB
Binary file not shown.

fonts/inter/Inter-Regular.woff2

-96.6 KB
Binary file not shown.

fonts/inter/Inter-italic.var.woff2

-239 KB
Binary file not shown.

fonts/inter/Inter-roman.var.woff2

-222 KB
Binary file not shown.

fonts/inter/Inter.var.woff2

-317 KB
Binary file not shown.

fonts/inter/LICENSE.txt

Lines changed: 0 additions & 94 deletions
This file was deleted.

fonts/inter/inter.css

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)