mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASTextNode] use accessor for pointSizeScaleFactors
I have a subclass of `ASTextNode` that uses `pointSizeScaleFactors`. Currently I have to recompute the scale factors any time the font size changes. If `_rendererAttributes` used the property accesor for the scale factors I would only have to create them when asked. I hope this little change can make it in :)
This commit is contained in:
@@ -240,7 +240,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
.lineBreakMode = _truncationMode,
|
||||
.maximumNumberOfLines = _maximumNumberOfLines,
|
||||
.exclusionPaths = _exclusionPaths,
|
||||
.pointSizeScaleFactors = _pointSizeScaleFactors,
|
||||
.pointSizeScaleFactors = self.pointSizeScaleFactors,
|
||||
.layoutManagerCreationBlock = self.layoutManagerCreationBlock,
|
||||
.textStorageCreationBlock = self.textStorageCreationBlock,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user