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
@ -1244,7 +1244,7 @@ class Font {
|
||||
getDingbatsGlyphsUnicode(),
|
||||
this.differences
|
||||
);
|
||||
} else if (isStandardFont) {
|
||||
} else if (isStandardFont || isMappedToStandardFont) {
|
||||
const map = buildToFontChar(
|
||||
this.defaultEncoding,
|
||||
getGlyphsUnicode(),
|
||||
|
||||
1
test/pdfs/issue18208.pdf.link
Normal file
1
test/pdfs/issue18208.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://github.com/user-attachments/files/15587595/d403d5d5-f3e1-411d-b289-9b497069b80e.pdf
|
||||
@ -3012,6 +3012,15 @@
|
||||
"rounds": 1,
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"id": "issue18208",
|
||||
"file": "pdfs/issue18208.pdf",
|
||||
"md5": "d07311117b5cc970159b09977898996b",
|
||||
"link": true,
|
||||
"rounds": 1,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "issue11139",
|
||||
"file": "pdfs/issue11139.pdf",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user