IsInteger => IsInt
This commit is contained in:
parent
120a4a3f38
commit
dea351911a
2
pdf.js
2
pdf.js
@ -1935,7 +1935,7 @@ var CanvasGraphics = (function() {
|
|||||||
|
|
||||||
var widths = xref.fetchIfRef(fontDict.get("Widths"));
|
var widths = xref.fetchIfRef(fontDict.get("Widths"));
|
||||||
var firstChar = xref.fetchIfRef(fontDict.get("FirstChar"));
|
var firstChar = xref.fetchIfRef(fontDict.get("FirstChar"));
|
||||||
assertWellFormed(IsArray(widths) && IsInteger(firstChar),
|
assertWellFormed(IsArray(widths) && IsInt(firstChar),
|
||||||
"invalid font Widths or FirstChar");
|
"invalid font Widths or FirstChar");
|
||||||
var charset = [];
|
var charset = [];
|
||||||
for (var j = 0; j < widths.length; j++) {
|
for (var j = 0; j < widths.length; j++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user