Avoid rendering invisible Type3 fonts (issue 5421)
This commit is contained in:
parent
83eff107ae
commit
4ac4d49158
@ -1463,9 +1463,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
||||
var textHScale = current.textHScale * fontDirection;
|
||||
var fontMatrix = current.fontMatrix || FONT_IDENTITY_MATRIX;
|
||||
var glyphsLength = glyphs.length;
|
||||
var isTextInvisible =
|
||||
current.textRenderingMode === TextRenderingMode.INVISIBLE;
|
||||
var i, glyph, width;
|
||||
|
||||
if (fontSize === 0) {
|
||||
if (isTextInvisible || fontSize === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -65,6 +65,7 @@
|
||||
!issue5070.pdf
|
||||
!issue5238.pdf
|
||||
!issue5244.pdf
|
||||
!issue5421.pdf
|
||||
!gradientfill.pdf
|
||||
!bug903856.pdf
|
||||
!bug850854.pdf
|
||||
|
BIN
test/pdfs/issue5421.pdf
Normal file
BIN
test/pdfs/issue5421.pdf
Normal file
Binary file not shown.
@ -1555,6 +1555,14 @@
|
||||
"type": "eq",
|
||||
"about": "True type font with encoding dict with no base encoding but with differences."
|
||||
},
|
||||
{ "id": "issue5421",
|
||||
"file": "pdfs/issue5421.pdf",
|
||||
"md5": "273f6813758a2349090003c7c8a0d85e",
|
||||
"link": false,
|
||||
"rounds": 1,
|
||||
"type": "eq",
|
||||
"about": "Invisible Type3 font used for text selection and searching."
|
||||
},
|
||||
{ "id": "issue5280",
|
||||
"file": "pdfs/issue5280.pdf",
|
||||
"md5": "0ea1230e2964e74cb6db063a89b78803",
|
||||
|
Loading…
Reference in New Issue
Block a user