From 76989d9ac1580fac945805c5b87c5ef6502ae74b Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 5 Nov 2022 00:15:23 +0530 Subject: [PATCH] fix(theme): use faux italics only with web fonts --- src/client/theme-default/styles/base.css | 2 +- src/client/theme-default/styles/fonts.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/theme-default/styles/base.css b/src/client/theme-default/styles/base.css index 56f3fba9fe4..70a7e7b3c33 100644 --- a/src/client/theme-default/styles/base.css +++ b/src/client/theme-default/styles/base.css @@ -26,7 +26,7 @@ body { color: var(--vp-c-text-1); background-color: var(--vp-c-bg); direction: ltr; - font-synthesis: style; + font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; diff --git a/src/client/theme-default/styles/fonts.css b/src/client/theme-default/styles/fonts.css index 525240889c0..dd62f566777 100644 --- a/src/client/theme-default/styles/fonts.css +++ b/src/client/theme-default/styles/fonts.css @@ -1,5 +1,9 @@ /* webfont-marker-begin */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap'); + +html body { + font-synthesis: style; +} /* webfont-marker-end */ @font-face {