libtxt: exclude trailing whitespace from right-justified lines (#5190)
If a line is right justified, then remove any trailing whitespace from the text range given to Minikin. Right justification shifts the line's glyphs by the layout advance computed by Minikin, and this advance should exclude whitespace so that the last visible character will be flush with the right margin. See https://github.com/flutter/flutter/issues/16333
Showing
想要评论请 注册 或 登录