mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Avoid rendering invisible Type3 fonts (issue 5421)
This commit is contained in:
parent
83eff107ae
commit
4ac4d49158
4 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue