Automattic/node-canvas
Right-aligned text with leading/trailing spaces rendered incorrectly
开放
#333 创建于 2013年10月1日
BugHelp wantedText & Fonts
仓库指标
- 星标
- (10,689 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
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):
