mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Improve rendering of non-embedded NuptialScript font
*This patch fixes something that I noticed while debugging https://bugzilla.mozilla.org/show_bug.cgi?id=1308536.* The PDF file contains a font called "NuptialScript", which unfortunately is not embedded. Since that is a non-standard font we will not be able to render it entirely correct. However, by adding "NuptialScript" to the `getNonStdFontMap`, we can at least improve the rendering slightly by using an italic (serif) fallback font.
This commit is contained in:
parent
9d8fb02512
commit
3170a4c40a
4 changed files with 98 additions and 0 deletions
|
@ -122,6 +122,7 @@
|
|||
t['MS-PMincho-Bold'] = 'MS PMincho-Bold';
|
||||
t['MS-PMincho-BoldItalic'] = 'MS PMincho-BoldItalic';
|
||||
t['MS-PMincho-Italic'] = 'MS PMincho-Italic';
|
||||
t['NuptialScript'] = 'Times-Italic';
|
||||
t['Wingdings'] = 'ZapfDingbats';
|
||||
});
|
||||
|
||||
|
@ -223,6 +224,7 @@
|
|||
t['New York'] = true;
|
||||
t['Nimbus Roman'] = true;
|
||||
t['NPS Rawlinson Roadway'] = true;
|
||||
t['NuptialScript'] = true;
|
||||
t['Palatino'] = true;
|
||||
t['Perpetua'] = true;
|
||||
t['Plantin'] = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue