Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/scripts/check-assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ async function validateFonts(): Promise<void> {
//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
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/styles/core.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/styles/fonts.scss
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ts/controllers/theme-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export async function applyFontFamily(): Promise<void> {

document.documentElement.style.setProperty(
"--font",
`"${font}", "Roboto Mono", "Vazirmatn", monospace`,
`"${font}", "Roboto Mono", "Vazirharf", monospace`,
);
}

Expand Down
4 changes: 3 additions & 1 deletion frontend/src/ts/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file not shown.
Binary file removed frontend/static/webfonts/Vazirmatn-Regular.woff2
Binary file not shown.