Skip to content

Commit 5b94c86

Browse files
Merge pull request #19263 from Snuffleupagus/Type2Compiled-fix-glyphNameMap
Remove the unused `glyphNameMap` parameter from `Type2Compiled`
2 parents b4abfec + aba6369 commit 5b94c86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/font_renderer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,14 +870,14 @@ class TrueTypeCompiled extends CompiledFont {
870870
}
871871

872872
class Type2Compiled extends CompiledFont {
873-
constructor(cffInfo, cmap, fontMatrix, glyphNameMap) {
873+
constructor(cffInfo, cmap, fontMatrix) {
874874
super(fontMatrix || [0.001, 0, 0, 0.001, 0, 0]);
875875

876876
this.glyphs = cffInfo.glyphs;
877877
this.gsubrs = cffInfo.gsubrs || [];
878878
this.subrs = cffInfo.subrs || [];
879879
this.cmap = cmap;
880-
this.glyphNameMap = glyphNameMap || getGlyphsUnicode();
880+
this.glyphNameMap = getGlyphsUnicode();
881881

882882
this.gsubrsBias = getSubroutineBias(this.gsubrs);
883883
this.subrsBias = getSubroutineBias(this.subrs);
@@ -931,7 +931,7 @@ class FontRendererFactory {
931931
fontMatrix
932932
);
933933
}
934-
return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
934+
return new Type2Compiled(cff, cmap, font.fontMatrix);
935935
}
936936
}
937937

0 commit comments

Comments
 (0)