Automattic/node-canvas
Voir sur GitHubRight-aligned text with leading/trailing spaces rendered incorrectly
Open
#333 ouverte le 1 oct. 2013
BugHelp wantedText & Fonts
Métriques du dépôt
- Stars
- (9 524 stars)
- Métriques de merge PR
- (Merge moyen 34j 18h) (2 PRs mergées en 30 j)
Description
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):
