We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f6e17 commit 82eb374Copy full SHA for 82eb374
src/fonts.js
@@ -5616,7 +5616,15 @@ Type1Font.prototype = {
5616
var field = fields[i];
5617
if (!properties.privateData.hasOwnProperty(field))
5618
continue;
5619
- privateDict.setByName(field, properties.privateData[field]);
+ var value = properties.privateData[field];
5620
+ if (isArray(value)) {
5621
+ // All of the private dictionary array data in CFF must be stored as
5622
+ // "delta-encoded" numbers.
5623
+ for (var j = value.length - 1; j > 0; j--) {
5624
+ value[j] -= value[j - 1]; // ... difference from previous value
5625
+ }
5626
5627
+ privateDict.setByName(field, value);
5628
}
5629
cff.topDict.privateDict = privateDict;
5630
0 commit comments