mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Correct spelling errors
This commit is contained in:
@@ -76,7 +76,7 @@ ASDISPLAYNODE_EXTERN_C_END
|
||||
- kCTParagraphStyleSpecifierMinimumLineSpacing
|
||||
- kCTParagraphStyleSpecifierLineSpacingAdjustment
|
||||
- kCTParagraphStyleSpecifierLineBoundsOptions
|
||||
@result An NSParagraphStyle initializd with as many of the paragraph specifiers from `coreTextParagraphStyle` as possible.
|
||||
@result An NSParagraphStyle initialized with as many of the paragraph specifiers from `coreTextParagraphStyle` as possible.
|
||||
|
||||
*/
|
||||
+ (instancetype)paragraphStyleWithCTParagraphStyle:(CTParagraphStyleRef)coreTextParagraphStyle;
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
|
||||
// We assume LTR so long as the writing direction is not
|
||||
BOOL rtlWritingDirection = paragraphStyle ? paragraphStyle.baseWritingDirection == NSWritingDirectionRightToLeft : NO;
|
||||
// We only want to treat the trunction rect as left-aligned in the case that we are right-aligned and our writing
|
||||
// We only want to treat the truncation rect as left-aligned in the case that we are right-aligned and our writing
|
||||
// direction is RTL.
|
||||
BOOL leftAligned = CGRectGetMinX(lastLineRect) == CGRectGetMinX(lastLineUsedRect) || !rtlWritingDirection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user