Automattic/node-canvas
Right-aligned text with leading/trailing spaces rendered incorrectly
Offen
#333 geöffnet am 01.10.2013
BugHelp wantedText & Fonts
Repository-Metriken
- Stars
- (10.689 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
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):
