Texture icon indicating copy to clipboard operation
Texture copied to clipboard

ASTextLayout truncated line fix when add headIndent or firstLineHeadIndent in NSParagraphStyle

Open kanottonp opened this issue 4 years ago • 1 comments

Hi Texture Team,

There is an issue about when I insert headIndent or firstLineHeadIndent into NSParagraphStyle and add to NSAttributedString in both ASTextNode or ASTextNode2

  • Examples test cases for showing truncated line with wrong layout (Truncation Message overflows the box) 1d012ab

image

So I found a solution for fixing and add test cases for this case too.

  • Fixing and Add Screenshot Test 9ca2aa2

Hope this helps!

kanottonp avatar Oct 25 '21 13:10 kanottonp

Already create pull request at #2042

kanottonp avatar Oct 25 '21 13:10 kanottonp