Skip to content

Build your personal knowledge base with Trilium Notes

perf(fonts): drop the Inter ttf

Elian Doran5e62f2acc5d6
diff --git a/apps/client/src/fonts/Inter/Inter-VariableFont_opsz,wght.ttf b/apps/client/src/fonts/Inter/Inter-VariableFont_opsz,wght.ttf
deleted file mode 100644
index e31b51e3e9..0000000000
Binary files a/apps/client/src/fonts/Inter/Inter-VariableFont_opsz,wght.ttf and /dev/null differ
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css
index b75d12fb29..3f55245b25 100644
--- a/apps/client/src/stylesheets/theme-next/base.css
+++ b/apps/client/src/stylesheets/theme-next/base.css
@@ -9,8 +9,7 @@
@font-face {
font-family: "Inter";
- src: url(../../fonts/Inter/Inter-VariableFont_opsz,wght.woff2) format("woff2-variations"),
- url(../../fonts/Inter/Inter-VariableFont_opsz,wght.ttf) format("truetype-variations");
+ src: url(../../fonts/Inter/Inter-VariableFont_opsz,wght.woff2) format("woff2-variations");
font-weight: 100 900;
font-style: normal;
font-display: swap;
diff --git a/apps/client/src/widgets/type_widgets/file/PdfViewer.tsx b/apps/client/src/widgets/type_widgets/file/PdfViewer.tsx
index b5cb17c353..299730ee17 100644
--- a/apps/client/src/widgets/type_widgets/file/PdfViewer.tsx
+++ b/apps/client/src/widgets/type_widgets/file/PdfViewer.tsx
@@ -2,7 +2,7 @@ import type { HTMLAttributes, RefObject } from "preact";
import { useCallback, useEffect, useRef } from "preact/hooks";
import { useSyncedRef, useTriliumOption, useTriliumOptionBool } from "../../react/hooks";
-import Inter from "./../../../fonts/Inter/Inter-VariableFont_opsz,wght.ttf";
+import Inter from "./../../../fonts/Inter/Inter-VariableFont_opsz,wght.woff2";
interface FontDefinition {
name: string;