mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #2463 from brendandahl/remove-cid-keys
Remove cid dictionary values for normalized fonts.
This commit is contained in:
commit
089b60d848
3 changed files with 13 additions and 0 deletions
|
@ -5513,7 +5513,14 @@ var CFFParser = (function CFFParserClosure() {
|
|||
}
|
||||
|
||||
var fontDict = cff.fdArray[0];
|
||||
// Make the sanitizer happy and remove anything that is only for CID
|
||||
// fonts.
|
||||
fontDict.setByKey(17, topDict.getByName('CharStrings'));
|
||||
fontDict.removeByName('CIDFontVersion');
|
||||
fontDict.removeByName('CIDFontRevision');
|
||||
fontDict.removeByName('CIDFontType');
|
||||
fontDict.removeByName('CIDCount');
|
||||
fontDict.removeByName('UIDBase');
|
||||
cff.topDict = fontDict;
|
||||
cff.isCIDFont = false;
|
||||
delete cff.fdArray;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue