Browse Source

Warn instead of fail for CID fonts

Yury Delendik 13 years ago
parent
commit
07a24c5589
  1. 6
      src/fonts.js

6
src/fonts.js

@ -4363,8 +4363,10 @@ var CFFParser = (function CFFParserClosure() {
// DirectWrite does not like CID fonts data. Trying to convert/flatten // DirectWrite does not like CID fonts data. Trying to convert/flatten
// the font data and remove CID properties. // the font data and remove CID properties.
if (cff.fdArray.length !== 1) if (cff.fdArray.length !== 1) {
error('Unable to normalize CID font in CFF data'); warn('Unable to normalize CID font in CFF data -- using font as is');
return cff;
}
var fontDict = cff.fdArray[0]; var fontDict = cff.fdArray[0];
fontDict.setByKey(17, topDict.getByName('CharStrings')); fontDict.setByKey(17, topDict.getByName('CharStrings'));

Loading…
Cancel
Save