mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Update filters
This commit is contained in:
@@ -837,10 +837,14 @@ public class TextNode: ASDisplayNode {
|
||||
} else {
|
||||
font = defaultFont
|
||||
}
|
||||
if let paragraphStyle = attributedString.attribute(NSAttributedString.Key.paragraphStyle, at: 0, effectiveRange: nil) as? NSParagraphStyle {
|
||||
resolvedAlignment = paragraphStyle.alignment
|
||||
if alignment == .center {
|
||||
resolvedAlignment = .center
|
||||
} else {
|
||||
resolvedAlignment = alignment
|
||||
if let paragraphStyle = attributedString.attribute(NSAttributedString.Key.paragraphStyle, at: 0, effectiveRange: nil) as? NSParagraphStyle {
|
||||
resolvedAlignment = paragraphStyle.alignment
|
||||
} else {
|
||||
resolvedAlignment = alignment
|
||||
}
|
||||
}
|
||||
} else {
|
||||
font = defaultFont
|
||||
|
||||
Reference in New Issue
Block a user