Skip to content

Commit b343924

Browse files
committed
Don't remove bold style when option is not on.
1 parent a09fade commit b343924

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Aztec/Classes/Formatters/Implementations/HeaderFormatter.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ open class HeaderFormatter: ParagraphAttributeFormatter {
6969

7070
if let font = attributes[.font] as? UIFont {
7171
let newFont = font.withSize(CGFloat(header.defaultFontSize))
72-
resultingAttributes[.font] = newFont.modifyTraits(.traitBold, enable: false)
72+
if Configuration.headersWithBoldTrait {
73+
resultingAttributes[.font] = newFont.modifyTraits(.traitBold, enable: false)
74+
}
7375
}
7476
resultingAttributes[.headingRepresentation] = nil
7577
return resultingAttributes

0 commit comments

Comments
 (0)