Skip to content

Commit 233ccf5

Browse files
author
Shlomo Zalman Heigh
committed
fix #157
1 parent 0211928 commit 233ccf5

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)