-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Right-aligned text with leading/trailing spaces rendered incorrectly #333
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
Comments
Hello, has anything happened on this front? Thanks for letting us know. |
+1 We also need a fix for this. @LinusU |
Version2.3.6 Steps to reproduceWe seem to have same problem with text position after saving to PNG. Attached is the design and the final PNG.
@asturur Any thoughts about this issue? Thank you so much ! |
when i have time to update to node-canvas 2, i ll swarm over those old fabricjs bugs. Now we are on 1.6 and that is unsupported. This means that we can't really invest time in research and fixes. |
I'm running into an issue like this. Using canvas in the browser my text is centered. Running the same text rendering code but using node-canvas results in seemingly random text alignment. And here's my function for rendering my lines of text:
I'm using node-canvas 2.3.1. |
Same issue here. Node.js tex-align is off compared to the browser. Anyone found a solution? |
I think we have some text align test in node and they work. What kind of font are you using? If you have a simple index.js that can print the text not correctly aligned, that woulds help. Maybe with a vertical line for reference where the alignemnt should be |
Using a simple test like this:
... I'm getting incorrect rendering in latest node-canvas:
compare to the same output in Chrome (and FF):
There's a similar problem with trailing spaces.
node-canvas:
Chrome (FF):
The text was updated successfully, but these errors were encountered: