Skip to content

Commit 124158e

Browse files
authored
fix(theme): use faux italics only with web fonts (#1581)
1 parent 26c186a commit 124158e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/client/theme-default/styles/base.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body {
2626
color: var(--vp-c-text-1);
2727
background-color: var(--vp-c-bg);
2828
direction: ltr;
29-
font-synthesis: style;
29+
font-synthesis: none;
3030
text-rendering: optimizeLegibility;
3131
-webkit-font-smoothing: antialiased;
3232
-moz-osx-font-smoothing: grayscale;

src/client/theme-default/styles/fonts.css

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
/* webfont-marker-begin */
22
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
3+
4+
html body {
5+
font-synthesis: style;
6+
}
37
/* webfont-marker-end */
48

59
@font-face {

0 commit comments

Comments
 (0)