Skip to content

Commit 5e057bb

Browse files
authored
Merge pull request #158 from szh/master
fix #157
2 parents a05c073 + 233ccf5 commit 5e057bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/pdfjs/build/pdf.worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32714,7 +32714,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
3271432714
},
3271532715
getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
3271632716
var defaultWidth = 0;
32717-
var widths = [];
32717+
var widths = Object.create(null); // Temporary fix: See https://github.com/intbot/ng2-pdfjs-viewer/issues/157 and https://github.com/mozilla/pdf.js/pull/12924/
3271832718
var monospace = false;
3271932719
var stdFontMap = (0, _standard_fonts.getStdFontMap)();
3272032720
var lookupName = stdFontMap[name] || name;

dist/pdfjs/build/pdf.worker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pdfjs/build/pdf.worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32714,7 +32714,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
3271432714
},
3271532715
getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
3271632716
var defaultWidth = 0;
32717-
var widths = [];
32717+
var widths = Object.create(null); // Temporary fix: See https://github.com/intbot/ng2-pdfjs-viewer/issues/157 and https://github.com/mozilla/pdf.js/pull/12924/
3271832718
var monospace = false;
3271932719
var stdFontMap = (0, _standard_fonts.getStdFontMap)();
3272032720
var lookupName = stdFontMap[name] || name;

0 commit comments

Comments
 (0)