Skip to content

Commit 3c4c01a

Browse files
committed
Ensuring CID 0 is permitted in Differences array.
1 parent 42f2bca commit 3c4c01a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PDFonts.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ function merge_encoding!(fum::FontUnicodeMapping,
7676
diff === CosNull && return fum
7777
values = get(diff)
7878
d = Dict()
79-
cid = 0
79+
cid = -1
8080
for v in values
8181
if v isa CosInt
8282
cid = get(v)
8383
else
84-
@assert cid != 0
84+
@assert cid != -1
8585
d[cid] = v
8686
cid += 1
8787
end

0 commit comments

Comments
 (0)