mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
Fix strict js wanings.
This commit is contained in:
parent
4cfcd45e70
commit
e72216649a
2 changed files with 20 additions and 13 deletions
3
fonts.js
3
fonts.js
|
@ -2631,7 +2631,8 @@ var Type2CFF = (function type2CFF() {
|
|||
if (unicode <= 0x1f || (unicode >= 127 && unicode <= 255))
|
||||
unicode += kCmapGlyphOffset;
|
||||
|
||||
var width = isNum(mapping.width) ? mapping.width : defaultWidth;
|
||||
var width = (mapping.hasOwnProperty('width') && isNum(mapping.width)) ?
|
||||
mapping.width : defaultWidth;
|
||||
properties.encoding[code] = {
|
||||
unicode: unicode,
|
||||
width: width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue