case 'CIDFontType2':
this.mimetype = 'font/opentype';
- // Repair the TrueType file if it is can be damaged in the point of
+ // Repair the TrueType file. It is can be damaged in the point of
// view of the sanitizer
data = this.checkAndRepair(name, file, properties);
break;
for (var i = 0; i < glyphs.length; i++) {
var glyph = glyphs[i];
var unicode = properties.glyphs[glyph.glyph];
- if ('undefined' == typeof(unicode)) {
+ if (!unicode) {
if (glyph.glyph != '.notdef')
missings.push(glyph.glyph);
} else {