This commit is contained in:
Christiano, Kevin 2019-04-24 14:32:43 -04:00
parent d767890017
commit 07f8921a4f

View File

@ -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