diff --git a/YYText/Component/YYTextLayout.m b/YYText/Component/YYTextLayout.m index 9c8ffdff..d0e4fbde 100644 --- a/YYText/Component/YYTextLayout.m +++ b/YYText/Component/YYTextLayout.m @@ -522,9 +522,8 @@ + (YYTextLayout *)layoutWithContainer:(YYTextContainer *)container text:(NSAttri CGPoint ctLineOrigin = lineOrigins[i]; // https://github.com/ibireme/YYText/issues/930 - if ([UIApplication sharedApplication].userInterfaceLayoutDirection == UIUserInterfaceLayoutDirectionRightToLeft) { - ctLineOrigin.x = 0; - } + // 不管rtl,还是ltr计算方式保持一致 + ctLineOrigin.x = 0; // UIKit coordinate system CGPoint position;