diff --git a/src/core/font_renderer.js b/src/core/font_renderer.js index 37342fc300dc9..8c37b916e9bb4 100644 --- a/src/core/font_renderer.js +++ b/src/core/font_renderer.js @@ -870,14 +870,14 @@ class TrueTypeCompiled extends CompiledFont { } class Type2Compiled extends CompiledFont { - constructor(cffInfo, cmap, fontMatrix, glyphNameMap) { + constructor(cffInfo, cmap, fontMatrix) { super(fontMatrix || [0.001, 0, 0, 0.001, 0, 0]); this.glyphs = cffInfo.glyphs; this.gsubrs = cffInfo.gsubrs || []; this.subrs = cffInfo.subrs || []; this.cmap = cmap; - this.glyphNameMap = glyphNameMap || getGlyphsUnicode(); + this.glyphNameMap = getGlyphsUnicode(); this.gsubrsBias = getSubroutineBias(this.gsubrs); this.subrsBias = getSubroutineBias(this.subrs); @@ -931,7 +931,7 @@ class FontRendererFactory { fontMatrix ); } - return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap); + return new Type2Compiled(cff, cmap, font.fontMatrix); } }