diff --git a/frontend/scripts/check-assets.ts b/frontend/scripts/check-assets.ts index 87fff613ccfc..7254ea0b5de8 100644 --- a/frontend/scripts/check-assets.ts +++ b/frontend/scripts/check-assets.ts @@ -344,7 +344,7 @@ async function validateFonts(): Promise { //no missing files const ignoredFonts = new Set([ "GallaudetRegular.woff2", //used for asl - "Vazirmatn-Regular.woff2", //default font + "Vazirharf-NL-Regular.woff2", //default font ]); const fontFiles = fs diff --git a/frontend/src/styles/core.scss b/frontend/src/styles/core.scss index 0789286106ea..fd90d5277ab0 100644 --- a/frontend/src/styles/core.scss +++ b/frontend/src/styles/core.scss @@ -1,6 +1,6 @@ :root { --roundness: 0.5rem; - --font: "Roboto Mono", "Vazirmatn", monospace; + --font: "Roboto Mono", "Vazirharf", monospace; // scroll-behavior: smooth; scroll-padding-top: 2rem; font-weight: 400; diff --git a/frontend/src/styles/fonts.scss b/frontend/src/styles/fonts.scss index e668ae1c2ddb..625f601dd4cf 100644 --- a/frontend/src/styles/fonts.scss +++ b/frontend/src/styles/fonts.scss @@ -1,11 +1,11 @@ @use "sass:map"; @font-face { - font-family: "Vazirmatn"; + font-family: "Vazirharf"; font-style: normal; font-weight: 400; font-display: block; - src: url("/webfonts/Vazirmatn-Regular.woff2") format("woff2"); + src: url("/webfonts/Vazirharf-NL-Regular.woff2") format("woff2"); } @each $font, $config in $fonts { diff --git a/frontend/src/ts/controllers/theme-controller.ts b/frontend/src/ts/controllers/theme-controller.ts index 7be5e0330251..c2dee371887e 100644 --- a/frontend/src/ts/controllers/theme-controller.ts +++ b/frontend/src/ts/controllers/theme-controller.ts @@ -314,7 +314,7 @@ export async function applyFontFamily(): Promise { document.documentElement.style.setProperty( "--font", - `"${font}", "Roboto Mono", "Vazirmatn", monospace`, + `"${font}", "Roboto Mono", "Vazirharf", monospace`, ); } diff --git a/frontend/src/ts/ui.ts b/frontend/src/ts/ui.ts index 31d564d51533..a4a194882e7a 100644 --- a/frontend/src/ts/ui.ts +++ b/frontend/src/ts/ui.ts @@ -19,7 +19,9 @@ let isPreviewingFont = false; export function previewFontFamily(font: FontName): void { document.documentElement.style.setProperty( "--font", - '"' + font.replaceAll(/_/g, " ") + '", "Roboto Mono", "Vazirmatn"', + '"' + + font.replaceAll(/_/g, " ") + + '", "Roboto Mono", "Vazirharf", "monospace"', ); void TestUI.updateHintsPositionDebounced(); isPreviewingFont = true; diff --git a/frontend/static/webfonts/Vazirharf-NL-Regular.woff2 b/frontend/static/webfonts/Vazirharf-NL-Regular.woff2 new file mode 100644 index 000000000000..be6035581479 Binary files /dev/null and b/frontend/static/webfonts/Vazirharf-NL-Regular.woff2 differ diff --git a/frontend/static/webfonts/Vazirmatn-Regular.woff2 b/frontend/static/webfonts/Vazirmatn-Regular.woff2 deleted file mode 100644 index c9824c872b3b..000000000000 Binary files a/frontend/static/webfonts/Vazirmatn-Regular.woff2 and /dev/null differ