Skip to content

Commit db4bf41

Browse files
committed
add vietnamese fonts
1 parent 7bdc852 commit db4bf41

8 files changed

+44
-1
lines changed

app/globals.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
@import "../styles/hamburger.css";
1717
@import "../styles/typesetting-article.css";
1818

19-
/* @import "../styles/i81n/chinese.css"; */
19+
@import "../styles/i81n/chinese.css";
20+
@import "../styles/i81n/vietnamese.css";
2021

2122
@custom-variant dark (&:where(.dark, .dark *));
2223
@custom-variant light (&:where(.light, .light *));
@@ -71,6 +72,7 @@
7172

7273
font-family:
7374
SurveyWithCode,
75+
SurveyWithCodeVietnamese,
7476
SurveyWithCodeChina,
7577
Katex_Main,
7678
"Segoe UI",
Binary file not shown.
Binary file not shown.
Binary file not shown.
22.8 KB
Binary file not shown.
21.7 KB
Binary file not shown.
22.9 KB
Binary file not shown.

styles/i81n/vietnamese.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@font-face {
2+
font-family: "SurveyWithCodeVietnamese";
3+
src: url("/fonts/vietnamese/SurveyWithCodeVietnamese-Regular.woff2") format("woff2");
4+
font-weight: 400;
5+
font-style: normal;
6+
}
7+
8+
@font-face {
9+
font-family: "SurveyWithCodeVietnamese";
10+
src: url("/fonts/vietnamese/SurveyWithCodeVietnamese-Italic.woff2") format("woff2");
11+
font-weight: 400;
12+
font-style: italic;
13+
}
14+
15+
@font-face {
16+
font-family: "SurveyWithCodeVietnamese";
17+
src: url("/fonts/vietnamese/SurveyWithCodeVietnamese-Slanted.woff2") format("woff2");
18+
font-weight: 400;
19+
font-style: oblique;
20+
}
21+
22+
@font-face {
23+
font-family: "SurveyWithCodeVietnamese";
24+
src: url("/fonts/vietnamese/SurveyWithCodeVietnamese-Bold Extended.woff2") format("woff2");
25+
font-weight: 700;
26+
font-style: normal;
27+
}
28+
29+
@font-face {
30+
font-family: "SurveyWithCodeVietnamese";
31+
src: url("/fonts/vietnamese/SurveyWithCodeVietnamese-Bold Extended Italic.woff2") format("woff2");
32+
font-weight: 700;
33+
font-style: italic;
34+
}
35+
36+
@font-face {
37+
font-family: "SurveyWithCodeVietnamese";
38+
src: url("/fonts/vietnamese/SurveyWithCodeVietnamese-Bold Extended Slanted.woff2") format("woff2");
39+
font-weight: 700;
40+
font-style: oblique;
41+
}

0 commit comments

Comments
 (0)