1
0
Fork 0
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:
Jonas Jenwald 2014-10-18 22:29:21 +02:00
parent 83eff107ae
commit 4ac4d49158
4 changed files with 12 additions and 1 deletions

View file

@ -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;
}