mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix text layout
This commit is contained in:
parent
85c81a107d
commit
ebd7459fe2
@ -1440,7 +1440,8 @@ open class TextNode: ASDisplayNode {
|
||||
let line = CTTypesetterCreateLine(typesetter, CFRange(location: currentLineStartIndex, length: lineCharacterCount))
|
||||
var lineAscent: CGFloat = 0.0
|
||||
var lineDescent: CGFloat = 0.0
|
||||
let lineWidth = CTLineGetTypographicBounds(line, &lineAscent, &lineDescent, nil)
|
||||
var lineWidth = CTLineGetTypographicBounds(line, &lineAscent, &lineDescent, nil)
|
||||
lineWidth = min(lineWidth, constrainedSegmentWidth - additionalSegmentRightInset)
|
||||
|
||||
var isRTL = false
|
||||
let glyphRuns = CTLineGetGlyphRuns(line) as NSArray
|
||||
|
Loading…
x
Reference in New Issue
Block a user