Merge pull request #13389 from calixteman/width_in_cff
Get any width (if one is present) in CFF parser
This commit is contained in:
commit
46c2eeb19a
@ -640,7 +640,9 @@ const CFFParser = (function CFFParserClosure() {
|
||||
} else if (stackSize > 1) {
|
||||
warn("Found too many parameters for stack-clearing command");
|
||||
}
|
||||
if (stackSize > 0 && stack[stackSize - 1] >= 0) {
|
||||
if (stackSize > 0) {
|
||||
// Width can be any number since its the difference
|
||||
// from nominalWidthX.
|
||||
state.width = stack[stackSize - 1];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user