Skip to content

Commit 0fc39aa

Browse files
committed
add arabic fonts
1 parent 3dd4a0e commit 0fc39aa

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

app/globals.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
@import "../styles/typesetting-article.css";
1919

2020
/* @import "../styles/i81n/chinese.css"; */
21-
@import "../styles/i81n/vietnamese.css";
21+
@import "../styles/i81n/arabic.css";
22+
/* @import "../styles/i81n/vietnamese.css"; */
2223

2324
@custom-variant dark (&:where(.dark, .dark *));
2425
@custom-variant light (&:where(.light, .light *));
@@ -73,9 +74,10 @@
7374
word-spacing: 0;
7475

7576
font-family:
77+
SurveyWithCodeArabicSans,
7678
SurveyWithCode,
77-
SurveyWithCodeVietnamese,
78-
SurveyWithCodeChina,
79+
/* SurveyWithCodeVietnamese, */
80+
/* SurveyWithCodeChina, */
7981
Katex_Main,
8082
"Segoe UI",
8183
TTT,
@@ -142,7 +144,7 @@
142144
.md-hide {
143145
display: none !important;
144146
}
145-
147+
146148
/* Ensure mobile content fits */
147149
.mobile-container {
148150
padding: 0.5rem;
81.8 KB
Binary file not shown.
101 KB
Binary file not shown.

scripts/ci-build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ LARGE_FILES=(
1111
"app/(private)/campuchia/page.md"
1212
"app/(private)/laos/page.md"
1313
"app/(private)/homebrew/page.md"
14-
"app/(private)/vietnamese/page.md"
1514
)
1615

1716
# Function to backup large files

styles/i81n/arabic.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* Define the font family and weights */
2+
@font-face {
3+
font-family: "SurveyWithCodeArabicSans";
4+
src: url("/fonts/arabic/SurveyWithCodeArabicSansRegular.woff2") format("woff2");
5+
font-weight: 400;
6+
font-style: normal;
7+
font-display: swap;
8+
font-stretch: normal;
9+
unicode-range: U+0600-06FF; /* Latin + Arabic ranges (optional) */
10+
}
11+
12+
@font-face {
13+
font-family: "SurveyWithCodeArabicSans";
14+
src: url("/fonts/arabic/SurveyWithCodeArabicSansBold.woff2") format("woff2");
15+
font-weight: 700;
16+
font-style: normal;
17+
font-display: swap;
18+
font-stretch: normal;
19+
unicode-range: U+0600-06FF; /* Latin + Arabic ranges (optional) */
20+
}
21+
22+
/* :root {
23+
--ui-font: "SurveyWithCodeArabicSans", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
24+
} */

0 commit comments

Comments
 (0)