Skip to content

Commit ea6ba8b

Browse files
committed
Update hintmask processing in Type2CharStringParser
1 parent 703fe86 commit ea6ba8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/verapdf/pd/font/cff/Type2CharStringParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected boolean processNextOperator(int nextByte) throws IOException {
6060
switch (nextByte) {
6161
case 19: // cntrmask
6262
case 20: // hintmask
63-
if (!this.stack.empty()) {
63+
if (this.stack.size() % 2 == 1) {
6464
this.setWidth(this.stack.get(0));
6565
}
6666
break;

0 commit comments

Comments
 (0)