Skip to content

Commit fb829fc

Browse files
authored
Merge pull request #50 from BingyanStudio/fix-special-chars
fix: fallback to JetBrainsMono for special characters
2 parents 27c4b89 + e1991f2 commit fb829fc

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

styles/classic/typora.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ body,
4949
font-weight: bold;
5050
}
5151

52+
/* Latin + Greek + Cyrillic */
53+
@font-face {
54+
font-family: "SourceHanSansCN";
55+
src: url('../fonts/JetBrainsMono-Regular.ttf');
56+
unicode-range: U+00-52F, U+1E00-1FFF, U+2200-22FF;
57+
}
58+
5259
@font-face {
5360
font-family: "JetBrainsMono";
5461
src: url('lapis-cv/fonts/JetBrainsMono-Regular.ttf');

styles/classic/vscode.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
font-weight: bold;
4545
}
4646

47+
/* Latin + Greek + Cyrillic */
48+
@font-face {
49+
font-family: "SourceHanSansCN";
50+
src: url('../fonts/JetBrainsMono-Regular.ttf');
51+
unicode-range: U+00-52F, U+1E00-1FFF, U+2200-22FF;
52+
}
53+
4754
@font-face {
4855
font-family: "JetBrainsMono";
4956
src: url('../fonts/JetBrainsMono-Regular.ttf');

styles/serif/typora.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,26 @@ body,
4949
font-weight: bold;
5050
}
5151

52+
/* Latin + Greek + Cyrillic */
53+
@font-face {
54+
font-family: "SourceHanSansCN";
55+
src: url('../fonts/JetBrainsMono-Regular.ttf');
56+
unicode-range: U+00-52F, U+1E00-1FFF, U+2200-22FF;
57+
}
58+
5259
@font-face {
5360
font-family: "SourceHanSerifCN";
5461
src: url('lapis-cv/fonts/SourceHanSerifCN-Bold.ttf');
5562
font-weight: bold;
5663
}
5764

65+
/* Latin + Greek + Cyrillic */
66+
@font-face {
67+
font-family: "SourceHanSerifCN";
68+
src: url('../fonts/JetBrainsMono-Regular.ttf');
69+
unicode-range: U+00-52F, U+1E00-1FFF, U+2200-22FF;
70+
}
71+
5872
@font-face {
5973
font-family: "JetBrainsMono";
6074
src: url('lapis-cv/fonts/JetBrainsMono-Regular.ttf');

styles/serif/vscode.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,26 @@
4646
font-weight: bold;
4747
}
4848

49+
/* Latin + Greek + Cyrillic */
50+
@font-face {
51+
font-family: "SourceHanSansCN";
52+
src: url('../fonts/JetBrainsMono-Regular.ttf');
53+
unicode-range: U+00-52F, U+1E00-1FFF, U+2200-22FF;
54+
}
55+
4956
@font-face {
5057
font-family: "SourceHanSerifCN";
5158
src: url('../fonts/SourceHanSerifCN-Bold.ttf');
5259
font-weight: bold;
5360
}
5461

62+
/* Latin + Greek + Cyrillic */
63+
@font-face {
64+
font-family: "SourceHanSerifCN";
65+
src: url('../fonts/JetBrainsMono-Regular.ttf');
66+
unicode-range: U+00-52F, U+1E00-1FFF, U+2200-22FF;
67+
}
68+
5569
@font-face {
5670
font-family: "JetBrainsMono";
5771
src: url('../fonts/JetBrainsMono-Regular.ttf');

0 commit comments

Comments
 (0)