1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #15732 from Snuffleupagus/issue-15719

Add a fallback for non-embedded *composite* Tahoma fonts (issue 15719)
This commit is contained in:
Jonas Jenwald 2022-11-24 19:09:12 +01:00 committed by GitHub
commit 8fda3f04fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View file

@ -1242,8 +1242,8 @@ class Font {
// Attempt to improve the glyph mapping for (some) composite fonts that
// appear to lack meaningful ToUnicode data.
if (this.composite && this.toUnicode instanceof IdentityToUnicodeMap) {
if (/Verdana/i.test(name)) {
// Fixes issue11242_reduced.pdf
if (/Tahoma|Verdana/i.test(name)) {
// Fixes issue15719.pdf and issue11242_reduced.pdf.
applyStandardFontGlyphMap(map, getGlyphMapForStandardFonts());
}
}