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 645efe1 commit 5628ad4Copy full SHA for 5628ad4
Sources/SwiftRichString/Style/Style.swift
@@ -616,6 +616,9 @@ public class Style: StyleProtocol {
616
// string to generate a single attributes dictionary for `NSAttributedString`.
617
let fontAttributes = self.fontData?.attributes ?? [:]
618
self.cachedAttributes = self.innerAttributes.merging(fontAttributes) { (_, new) in return new }
619
+ if let font = self.fontData?.font {
620
+ self.cachedAttributes?[.font] = font
621
+ }
622
return self.cachedAttributes!
623
}
624
0 commit comments