We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a09fade commit b343924Copy full SHA for b343924
1 file changed
Aztec/Classes/Formatters/Implementations/HeaderFormatter.swift
@@ -69,7 +69,9 @@ open class HeaderFormatter: ParagraphAttributeFormatter {
69
70
if let font = attributes[.font] as? UIFont {
71
let newFont = font.withSize(CGFloat(header.defaultFontSize))
72
- resultingAttributes[.font] = newFont.modifyTraits(.traitBold, enable: false)
+ if Configuration.headersWithBoldTrait {
73
+ resultingAttributes[.font] = newFont.modifyTraits(.traitBold, enable: false)
74
+ }
75
}
76
resultingAttributes[.headingRepresentation] = nil
77
return resultingAttributes
0 commit comments