Skip to content

Commit e0fc1a3

Browse files
Merge pull request #18628 from Snuffleupagus/issue-18208
Use standard glyph mapping for non-embedded and non-composite Calibri fonts (issue 18208)
2 parents 88ea60d + 6dd3118 commit e0fc1a3

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/core/fonts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ class Font {
12441244
getDingbatsGlyphsUnicode(),
12451245
this.differences
12461246
);
1247-
} else if (isStandardFont) {
1247+
} else if (isStandardFont || isMappedToStandardFont) {
12481248
const map = buildToFontChar(
12491249
this.defaultEncoding,
12501250
getGlyphsUnicode(),

test/pdfs/issue18208.pdf.link

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/user-attachments/files/15587595/d403d5d5-f3e1-411d-b289-9b497069b80e.pdf

test/test_manifest.json

+9
Original file line numberDiff line numberDiff line change
@@ -3012,6 +3012,15 @@
30123012
"rounds": 1,
30133013
"type": "text"
30143014
},
3015+
{
3016+
"id": "issue18208",
3017+
"file": "pdfs/issue18208.pdf",
3018+
"md5": "d07311117b5cc970159b09977898996b",
3019+
"link": true,
3020+
"rounds": 1,
3021+
"lastPage": 1,
3022+
"type": "eq"
3023+
},
30153024
{
30163025
"id": "issue11139",
30173026
"file": "pdfs/issue11139.pdf",

0 commit comments

Comments
 (0)