1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge branch 'refs/heads/master' into filesplit

Conflicts:
	pdf.js
This commit is contained in:
Artur Adib 2011-10-26 15:10:58 -04:00
commit 41caf5018d
5 changed files with 22 additions and 15 deletions

View file

@ -2897,7 +2897,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