Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text underline/overline/linethrough should ignore charSpacing at the end of line #5006

Closed
shkaper opened this issue May 30, 2018 · 0 comments

Comments

@shkaper
Copy link
Contributor

shkaper commented May 30, 2018

Text underline/overline/linethrough should ignore charSpacing at the end of text line. When charSpacing is set to something other than 0 it becomes visible that the decoration line goes over/comes short of text line's end (see Test Case fiddle). A fix would be to just correct ctx.fillRect's width for that amount (see Expected Behavior fiddle, see also PR #5007).

Version

2.3.0

Test Case

http://jsfiddle.net/3hy0h6on/2/

Expected Behavior

http://jsfiddle.net/voe5dmaq/3/ (fabric.Text.prototype._renderTextDecoration overridden)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants