mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Use standard glyph mapping for non-embedded and non-composite Calibri fonts (issue 18208)
Given that we handle non-embedded Calibri fonts as "mapped to standard font", we really ought to be able to use the same glyph mapping as for an actual standard font.
Note that this actually improves consistency in the code, given how we already handle such fonts if they happen to be of the `CIDFontType2` type; see b47c7eca83/src/core/fonts.js (L1186-L1190)
This commit is contained in:
parent
b47c7eca83
commit
6dd31183be
3 changed files with 11 additions and 1 deletions
|
@ -1244,7 +1244,7 @@ class Font {
|
|||
getDingbatsGlyphsUnicode(),
|
||||
this.differences
|
||||
);
|
||||
} else if (isStandardFont) {
|
||||
} else if (isStandardFont || isMappedToStandardFont) {
|
||||
const map = buildToFontChar(
|
||||
this.defaultEncoding,
|
||||
getGlyphsUnicode(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue