mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue