Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

Bundle Noto Sans fonts locally instead of loading from Google Fonts CDN

Ryan Schumacheredff806ec676
diff --git a/src/assets/fonts/NotoSans-italic-latin-ext.woff2 b/src/assets/fonts/NotoSans-italic-latin-ext.woff2
new file mode 100644
index 000000000..7952493c2
Binary files /dev/null and b/src/assets/fonts/NotoSans-italic-latin-ext.woff2 differ
diff --git a/src/assets/fonts/NotoSans-italic-latin.woff2 b/src/assets/fonts/NotoSans-italic-latin.woff2
new file mode 100644
index 000000000..30803393a
Binary files /dev/null and b/src/assets/fonts/NotoSans-italic-latin.woff2 differ
diff --git a/src/assets/fonts/NotoSans-normal-latin-ext.woff2 b/src/assets/fonts/NotoSans-normal-latin-ext.woff2
new file mode 100644
index 000000000..acfb98847
Binary files /dev/null and b/src/assets/fonts/NotoSans-normal-latin-ext.woff2 differ
diff --git a/src/assets/fonts/NotoSans-normal-latin.woff2 b/src/assets/fonts/NotoSans-normal-latin.woff2
new file mode 100644
index 000000000..e08293045
Binary files /dev/null and b/src/assets/fonts/NotoSans-normal-latin.woff2 differ
diff --git a/src/assets/fonts/noto-sans.css b/src/assets/fonts/noto-sans.css
new file mode 100644
index 000000000..19c104bcc
--- /dev/null
+++ b/src/assets/fonts/noto-sans.css
@@ -0,0 +1,45 @@
+/* Noto Sans — locally bundled (variable weight 300–700) */
+
+/* latin-ext — normal */
+@font-face {
+ font-family: 'Noto Sans';
+ font-style: normal;
+ font-weight: 300 700;
+ font-stretch: 100%;
+ font-display: swap;
+ src: url('./NotoSans-normal-latin-ext.woff2') format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin — normal */
+@font-face {
+ font-family: 'Noto Sans';
+ font-style: normal;
+ font-weight: 300 700;
+ font-stretch: 100%;
+ font-display: swap;
+ src: url('./NotoSans-normal-latin.woff2') format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext — italic */
+@font-face {
+ font-family: 'Noto Sans';
+ font-style: italic;
+ font-weight: 300 700;
+ font-stretch: 100%;
+ font-display: swap;
+ src: url('./NotoSans-italic-latin-ext.woff2') format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin — italic */
+@font-face {
+ font-family: 'Noto Sans';
+ font-style: italic;
+ font-weight: 300 700;
+ font-stretch: 100%;
+ font-display: swap;
+ src: url('./NotoSans-italic-latin.woff2') format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
diff --git a/src/index.html b/src/index.html
index ff2b4e4f4..e767b282c 100644
--- a/src/index.html
+++ b/src/index.html
@@ -4,9 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="./assets/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
+ <link rel="stylesheet" href="./assets/fonts/noto-sans.css">
<title>OpenWhispr</title>
</head>
<body>