mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Fallback to font name matching, when checking for serif fonts (issue 13845)
In order to handle fonts that specify completely bogus /Flags-entries, fallback to font name matching to determine if the font is a serif one.
This commit is contained in:
parent
8dc22f40c7
commit
9acfe486d4
5 changed files with 27 additions and 1 deletions
|
@ -3855,6 +3855,7 @@ class PartialEvaluator {
|
|||
loadedName: baseDict.loadedName,
|
||||
widths: metrics.widths,
|
||||
defaultWidth: metrics.defaultWidth,
|
||||
isSimulatedFlags: true,
|
||||
flags,
|
||||
firstChar,
|
||||
lastChar,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue