You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
When lineBreakMode is set for the renderer, it seems to behave differently when the frame allows drawing multiple lines of the text.
For a frame that can contain multiple lines, if the text renderer properties are set like this:
then the ellipsis is shown at the end, but only the first line is drawn. The rest of the lines are not drawn by the renderer.
EDIT: Added screenshot
The upper part has been drawn without TUILineBreakModeTailTruncation. It shows both lines. The lower part was drawn with that option added, and in this case, the second line is not drawn. The frame size is the same in both cases.
The text was updated successfully, but these errors were encountered:
Well, searching a bit about it, it seems that's the expected behavior of CoreText. I was expecting it to behave in a similar way as "Truncate last visible line" in NSTextfield, or the parameter NSStringDrawingTruncatesLastVisibleLine of NSAttributtedString. It seems that the text must be drawn line by line to achieve that.
After further reading, it's definitely how CoreText works, so i am closing the issue.
When lineBreakMode is set for the renderer, it seems to behave differently when the frame allows drawing multiple lines of the text.
For a frame that can contain multiple lines, if the text renderer properties are set like this:
Multiple lines are drawn, the last line is wrapped to the last word, and the ellipsis is not drawn as expected.
But it i change the properties to this:
then the ellipsis is shown at the end, but only the first line is drawn. The rest of the lines are not drawn by the renderer.
EDIT: Added screenshot
The upper part has been drawn without TUILineBreakModeTailTruncation. It shows both lines. The lower part was drawn with that option added, and in this case, the second line is not drawn. The frame size is the same in both cases.
The text was updated successfully, but these errors were encountered: