From 3f5f5ab8dba7c83a089d75528c1856b333cefa0d Mon Sep 17 00:00:00 2001 From: Andrea Peltrin Date: Thu, 22 Apr 2021 09:57:37 +0200 Subject: [PATCH] #2: preserve italic styles when switching fonts --- src/Style/Font.elm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Style/Font.elm b/src/Style/Font.elm index cd00c3b..a042367 100644 --- a/src/Style/Font.elm +++ b/src/Style/Font.elm @@ -187,55 +187,55 @@ weightNumber value = 900 HeavyItalic -> - 900 + 901 ExtraBold -> 800 ExtraBoldItalic -> - 800 + 801 Bold -> 700 BoldItalic -> - 700 + 701 SemiBold -> 600 SemiBoldItalic -> - 600 + 601 Medium -> 500 MediumItalic -> - 500 + 501 Regular -> 400 Italic -> - 400 + 401 Light -> 300 LightItalic -> - 300 + 301 ExtraLight -> 200 ExtraLightItalic -> - 200 + 201 Hairline -> 100 HairlineItalic -> - 100 + 101 type TextAlignment