mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Warn instead of fail for CID fonts
This commit is contained in:
parent
665ff0d36f
commit
07a24c5589
1 changed files with 4 additions and 2 deletions
|
@ -4363,8 +4363,10 @@ var CFFParser = (function CFFParserClosure() {
|
|||
|
||||
// DirectWrite does not like CID fonts data. Trying to convert/flatten
|
||||
// the font data and remove CID properties.
|
||||
if (cff.fdArray.length !== 1)
|
||||
error('Unable to normalize CID font in CFF data');
|
||||
if (cff.fdArray.length !== 1) {
|
||||
warn('Unable to normalize CID font in CFF data -- using font as is');
|
||||
return cff;
|
||||
}
|
||||
|
||||
var fontDict = cff.fdArray[0];
|
||||
fontDict.setByKey(17, topDict.getByName('CharStrings'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue