Re-land "libtxt: exclude trailing whitespace from right-justified lines" (#5234)
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. Also exclude trailing whitespace from center justified lines. Fixes https://github.com/flutter/flutter/issues/17502 Fixes https://github.com/flutter/flutter/issues/16333
Showing
想要评论请 注册 或 登录