Automattic/node-canvas
Vedi su GitHubRight-aligned text with leading/trailing spaces rendered incorrectly
Open
#333 aperta il 1 ott 2013
BugHelp wantedText & Fonts
Metriche repository
- Star
- (9524 star)
- Metriche merge PR
- (Merge medio 34g 18h) (2 PR mergiate in 30 g)
Descrizione
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):
