Automattic / Automattic/node-canvas
Right-aligned text with leading/trailing spaces rendered incorrectly
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
Using a simple test like this:
``` js
ctx.font = '30px Arial';
ctx.textAlign = 'right';
ctx.strokeRect(100, 100, 100, 100);
ctx.fillText(' foobar', 100, 100);
```
... 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):

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.