Browse Source

Deal with negative vScale value

vyv03354 12 years ago
parent
commit
d933386e76
  1. 2
      web/viewer.js

2
web/viewer.js

@ -2633,7 +2633,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv, pageIdx) {
var textDiv = document.createElement('div'); var textDiv = document.createElement('div');
// vScale and hScale already contain the scaling to pixel units // vScale and hScale already contain the scaling to pixel units
var fontHeight = geom.fontSize * geom.vScale; var fontHeight = geom.fontSize * Math.abs(geom.vScale);
textDiv.dataset.canvasWidth = geom.canvasWidth * geom.hScale; textDiv.dataset.canvasWidth = geom.canvasWidth * geom.hScale;
textDiv.dataset.fontName = geom.fontName; textDiv.dataset.fontName = geom.fontName;

Loading…
Cancel
Save