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 791ae49 commit d13089fCopy full SHA for d13089f
Sources/SwiftRichString/Style/StyleGroup.swift
@@ -242,7 +242,9 @@ public class StyleGroup: StyleProtocol {
242
243
let location = tag.range.location
244
let length = closingTag.range.location-location
245
- attrStr.addAttributes(attribute.attributes, range: NSRange(location: location, length: length))
+ let range = NSRange(location: location, length: length)
246
+ attribute.fontData?.addAttributes(to: attrStr, range: range)
247
+ attrStr.addAttributes(attribute.attributes, range: range)
248
}
249
250
0 commit comments