1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #19263 from Snuffleupagus/Type2Compiled-fix-glyphNameMap

Remove the unused `glyphNameMap` parameter from `Type2Compiled`
This commit is contained in:
Tim van der Meij 2024-12-29 15:39:58 +01:00 committed by GitHub
commit 5b94c865e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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