Browse Source

feat: Vazirmatn font for Persian and Arabic languages

Timothy Jaeryang Baek 1 month ago
parent
commit
0f40cb0de4
3 changed files with 7 additions and 1 deletions
  1. 6 0
      src/app.css
  2. 1 1
      src/tailwind.css
  3. BIN
      static/assets/fonts/Vazirmatn-Variable.ttf

+ 6 - 0
src/app.css

@@ -24,6 +24,12 @@
 	font-display: swap;
 }
 
+@font-face {
+	font-family: 'Vazirmatn';
+	src: url('/assets/fonts/Vazirmatn-Variable.ttf');
+	font-display: swap;
+}
+
 html {
 	word-break: break-word;
 }

+ 1 - 1
src/tailwind.css

@@ -24,7 +24,7 @@
 	html,
 	pre {
 		font-family: -apple-system, BlinkMacSystemFont, 'Inter', ui-sans-serif, system-ui, 'Segoe UI',
-			Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Helvetica Neue', Arial,
+			Roboto, Ubuntu, Cantarell, 'Vazirmatn', 'Noto Sans', sans-serif, 'Helvetica Neue', Arial,
 			'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
 	}
 

BIN
static/assets/fonts/Vazirmatn-Variable.ttf