Automattic/node-canvas
GitHub で見るRight-aligned text with leading/trailing spaces rendered incorrectly
Open
#333 opened on 2013年10月1日
BugHelp wantedText & Fonts
Repository metrics
- Stars
- (9,524 stars)
- PR merge metrics
- (平均マージ 34d 18h) (30d で 2 merged PRs)
説明
Using a simple test like this:
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):
