1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +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:
Jonas Jenwald 2021-09-22 17:02:06 +02:00
parent 8dc22f40c7
commit 9acfe486d4
5 changed files with 27 additions and 1 deletions

View file

@ -243,6 +243,7 @@ const getSerifFonts = getLookupTableFactory(function (t) {
t.Joanna = true;
t.Korinna = true;
t.Lexicon = true;
t.LiberationSerif = true;
t["Liberation Serif"] = true;
t["Linux Libertine"] = true;
t.Literaturnaya = true;