mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Optimization: don't scale when parameter is 1.0
This commit is contained in:
parent
bd95a191b7
commit
cc9035438a
1 changed files with 2 additions and 1 deletions
|
@ -728,7 +728,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
if (textSelection)
|
||||
text.geom = this.getTextGeometry();
|
||||
|
||||
ctx.scale(fontSizeScale, fontSizeScale);
|
||||
if (fontSizeScale != 1.0)
|
||||
ctx.scale(fontSizeScale, fontSizeScale);
|
||||
|
||||
var x = 0;
|
||||
for (var i = 0; i < glyphsLength; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue