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:
commit
5b94c865e7
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue