fix rendering of some symbols. Patch by Vivien Nicolas.

This commit is contained in:
Chris Jones 2011-06-23 15:36:53 -07:00
parent ba3c700bec
commit 96796619c2

2
pdf.js
View File

@ -2857,7 +2857,7 @@ var CanvasGraphics = (function() {
} else { } else {
text = Fonts.charsToUnicode(text); text = Fonts.charsToUnicode(text);
this.ctx.translate(this.current.x, -1 * this.current.y); this.ctx.translate(this.current.x, -1 * this.current.y);
this.ctx.fillText(Fonts.charsToUnicode(text), 0, 0); this.ctx.fillText(text, 0, 0);
this.current.x += this.ctx.measureText(text).width; this.current.x += this.ctx.measureText(text).width;
} }