Skip to content

Commit c9a7498

Browse files
committed
Merge pull request #6120 from Snuffleupagus/issue-6117
Clear the |getSinglePixelWidth| cache when rendering Type3 fonts (issue 6117)
2 parents e926757 + 75624c8 commit c9a7498

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/display/canvas.js

+1
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
14851485
if (isTextInvisible || fontSize === 0) {
14861486
return;
14871487
}
1488+
this.cachedGetSinglePixelWidth = null;
14881489

14891490
ctx.save();
14901491
ctx.transform.apply(ctx, current.textMatrix);

test/pdfs/issue6117.pdf.link

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://web.archive.org/web/20150402085611/http://chrishecker.com/images/3/33/Gdmogl.pdf

test/test_manifest.json

+9
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,15 @@
13151315
"link": true,
13161316
"type": "eq"
13171317
},
1318+
{ "id": "issue6117",
1319+
"file": "pdfs/issue6117.pdf",
1320+
"md5": "691f5f8268e07f3831e8293258a68da7",
1321+
"rounds": 1,
1322+
"link": true,
1323+
"firstPage": 6,
1324+
"lastPage": 6,
1325+
"type": "eq"
1326+
},
13181327
{ "id": "cid_cff",
13191328
"file": "pdfs/cid_cff.pdf",
13201329
"md5": "a19a18eaa626262cc45e0760004d6de9",

0 commit comments

Comments
 (0)