1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #11744 from janpe2/cff-glyph-zero

The first glyph in CFF CIDFonts must be named 0 instead of ".notdef"
This commit is contained in:
Tim van der Meij 2020-03-24 23:52:21 +01:00 committed by GitHub
commit 475fa1f97f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 3 deletions

View file

@ -803,7 +803,7 @@ var CFFParser = (function CFFParserClosure() {
var bytes = this.bytes;
var start = pos;
var format = bytes[pos++];
var charset = [".notdef"];
const charset = [cid ? 0 : ".notdef"];
var id, count, i;
// subtract 1 for the .notdef glyph