From 7d5b1cd081d6bbb1b39789840b8ed22cc977a357 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 17 Sep 2024 15:02:31 -0500 Subject: [PATCH] Fix regular italic variant --- src/alf/fonts.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/alf/fonts.ts b/src/alf/fonts.ts index 05da233c7a..c38ba6be3c 100644 --- a/src/alf/fonts.ts +++ b/src/alf/fonts.ts @@ -56,6 +56,10 @@ export function applyFonts(style: Record) { }[style.fontWeight as string] || 'Inter-Regular' if (style.fontStyle === 'italic') { - style.fontFamily += 'Italic' + if (style.fontFamily === 'Inter-Regular') { + style.fontFamily = 'Inter-Italic' + } else { + style.fontFamily += 'Italic' + } } }