We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
measureText
ctx.direction
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
I have encountered this bug when using ctx.direction = 'rtl' and ctx.textAlign = 'start' | 'end'
ctx.direction = 'rtl'
ctx.textAlign = 'start' | 'end'
It is clear that the code fails to first resolve start/end textAlign and therefore executes as if direction is ltr.
start
end
textAlign
ltr
node-canvas/src/CanvasRenderingContext2d.cc
Lines 2819 to 2832 in 1234a86
I am willing to PR.
The text was updated successfully, but these errors were encountered:
I would love a PR, thank you.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I have encountered this bug when using
ctx.direction = 'rtl'
andctx.textAlign = 'start' | 'end'
It is clear that the code fails to first resolve
start
/end
textAlign
and therefore executes as if direction isltr
.node-canvas/src/CanvasRenderingContext2d.cc
Lines 2819 to 2832 in 1234a86
I am willing to PR.
The text was updated successfully, but these errors were encountered: