|
|
@ -1473,7 +1473,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { |
|
|
|
ctx.transform.apply(ctx, current.textMatrix); |
|
|
|
ctx.transform.apply(ctx, current.textMatrix); |
|
|
|
ctx.translate(current.x, current.y); |
|
|
|
ctx.translate(current.x, current.y); |
|
|
|
|
|
|
|
|
|
|
|
ctx.scale(textHScale, 1); |
|
|
|
ctx.scale(textHScale, fontDirection); |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < glyphsLength; ++i) { |
|
|
|
for (i = 0; i < glyphsLength; ++i) { |
|
|
|
glyph = glyphs[i]; |
|
|
|
glyph = glyphs[i]; |
|
|
@ -1503,7 +1503,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { |
|
|
|
this.restore(); |
|
|
|
this.restore(); |
|
|
|
|
|
|
|
|
|
|
|
var transformed = Util.applyTransform([glyph.width, 0], fontMatrix); |
|
|
|
var transformed = Util.applyTransform([glyph.width, 0], fontMatrix); |
|
|
|
width = ((transformed[0] * fontSize + charSpacing) * fontDirection); |
|
|
|
width = transformed[0] * fontSize + charSpacing; |
|
|
|
|
|
|
|
|
|
|
|
ctx.translate(width, 0); |
|
|
|
ctx.translate(width, 0); |
|
|
|
current.x += width * textHScale; |
|
|
|
current.x += width * textHScale; |
|
|
|