mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-12 17:30:34 +00:00
Merge pull request #1229 from rcancro/disableWordKerning
[ASTextNode] Remove wordkerner to fix jumbled text bug
This commit is contained in:
commit
52afe2a6ac
@ -21,7 +21,6 @@
|
||||
#import "ASTextKitRenderer.h"
|
||||
#import "ASTextKitRenderer+Positioning.h"
|
||||
#import "ASTextKitShadower.h"
|
||||
#import "ASTextNodeWordKerner.h"
|
||||
|
||||
#import "ASInternalHelpers.h"
|
||||
#import "ASEqualityHelpers.h"
|
||||
@ -81,10 +80,6 @@ static NSString *ASTextNodeTruncationTokenAttributeName = @"ASTextNodeTruncation
|
||||
ASTextKitRenderer *_renderer;
|
||||
|
||||
UILongPressGestureRecognizer *_longPressGestureRecognizer;
|
||||
|
||||
ASDN::Mutex _wordKernerLock;
|
||||
ASTextNodeWordKerner *_wordKerner;
|
||||
|
||||
}
|
||||
@dynamic placeholderEnabled;
|
||||
|
||||
@ -248,7 +243,6 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
.maximumNumberOfLines = _maximumNumberOfLines,
|
||||
.exclusionPaths = _exclusionPaths,
|
||||
.minimumScaleFactor = _minimumScaleFactor,
|
||||
.layoutManagerDelegate = [self _wordKerner],
|
||||
};
|
||||
}
|
||||
|
||||
@ -284,15 +278,6 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
}
|
||||
}
|
||||
|
||||
- (ASTextNodeWordKerner *)_wordKerner
|
||||
{
|
||||
ASDN::MutexLocker l(_wordKernerLock);
|
||||
if (_wordKerner == nil) {
|
||||
_wordKerner = [[ASTextNodeWordKerner alloc] init];
|
||||
}
|
||||
return _wordKerner;
|
||||
}
|
||||
|
||||
#pragma mark - Layout and Sizing
|
||||
|
||||
- (BOOL)_needInvalidateRendererForBoundsSize:(CGSize)boundsSize
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user