diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index b4b90731..8ca484e3 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -195,13 +195,13 @@ import MVMCore if let fontName = attribute.optionalStringForKey("name") { font = MFFonts.mfFont(withName: fontName, size: fontSize ?? label.font.pointSize) - } else if let fontSize = fontSize { + } else if let fontSize = fontSize { font = label.font.withSize(fontSize) } if let font = font { attributedString.removeAttribute(.font, range: range) - attributedString.addAttribute(.font, value: font as UIFont, range: range) + attributedString.addAttribute(.font, value: font, range: range) } default: continue