1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +02:00

Use adjustWidths for TrueType fonts if we handle them as OpenType (issue 5027, issue 5084, issue 6556, bug 1204903)

In `Font_checkAndRepair` we can decide that a font isn't TrueType, and instead parse it as CFF. In that case it's quite possible that the `fontMatrix` will be changed, and without calling `adjustWidths` we're failing to update the glyph widths correctly.

Fixes 5027.
Fixes 5084.
Fixes 6556.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1204903.
This commit is contained in:
Jonas Jenwald 2015-12-07 22:30:09 +01:00
parent 084bb8682f
commit ee0d522187
4 changed files with 15 additions and 0 deletions

View file

@ -46,6 +46,7 @@
!issue6413.pdf
!issue4630.pdf
!issue4909.pdf
!issue5084.pdf
!issue5202.pdf
!issue5280.pdf
!issue5677.pdf

BIN
test/pdfs/issue5084.pdf Normal file

Binary file not shown.

View file

@ -748,6 +748,13 @@
"rounds": 1,
"type": "eq"
},
{ "id": "issue5084",
"file": "pdfs/issue5084.pdf",
"md5": "a42a076ba90e20e3aae9af869eb4de45",
"link": false,
"rounds": 1,
"type": "eq"
},
{ "id": "scan-bad",
"file": "pdfs/scan-bad.pdf",
"md5": "4cf988f01ab83f61aca57f406dfd6584",