Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textlayout-ui
Conflicts: web/viewer.js
This commit is contained in:
commit
877e0f4159
24 changed files with 1648 additions and 131 deletions
|
@ -636,6 +636,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
ctx.translate(current.x, current.y);
|
||||
|
||||
ctx.scale(textHScale, 1);
|
||||
ctx.lineWidth /= current.textMatrix[0];
|
||||
|
||||
if (textSelection) {
|
||||
this.save();
|
||||
|
@ -672,6 +673,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
} else {
|
||||
ctx.save();
|
||||
this.applyTextTransforms();
|
||||
ctx.lineWidth /= current.textMatrix[0] * fontMatrix[0];
|
||||
|
||||
if (textSelection)
|
||||
text.geom = this.getTextGeometry();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue