1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Add a fallback for non-embedded LucidaSans-Demi fonts (issue 9291)

The PDF file in the issue uses a number of *embedded* versions of Lucida fonts, but for some reason does *not* embed the LucidaSans-Demi font. According to https://en.wikipedia.org/wiki/Lucida#Usages that one should be bold, so we can at least improve rendering here (even though it won't look perfect).

Fixes 9291.
This commit is contained in:
Jonas Jenwald 2017-12-24 17:25:43 +01:00
parent 1d4651b2e4
commit d4cd44fd16
4 changed files with 98 additions and 0 deletions

View file

@ -99,6 +99,7 @@ var getNonStdFontMap = getLookupTableFactory(function (t) {
t['LucidaConsole-Bold'] = 'Courier-Bold';
t['LucidaConsole-BoldItalic'] = 'Courier-BoldOblique';
t['LucidaConsole-Italic'] = 'Courier-Oblique';
t['LucidaSans-Demi'] = 'Helvetica-Bold';
t['MS-Gothic'] = 'MS Gothic';
t['MS-Gothic-Bold'] = 'MS Gothic-Bold';
t['MS-Gothic-BoldItalic'] = 'MS Gothic-BoldItalic';