Merge pull request #11755 from Snuffleupagus/rm-fonts-sizes-encoding

Remove the unused `sizes` and `encoding` properties on `Font` instances
This commit is contained in:
Tim van der Meij 2020-03-27 21:44:16 +01:00 committed by GitHub
commit c12ea21c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -523,7 +523,6 @@ var Font = (function FontClosure() {
this.name = name;
this.loadedName = properties.loadedName;
this.isType3Font = properties.isType3Font;
this.sizes = [];
this.missingFile = false;
this.glyphCache = Object.create(null);
@ -652,7 +651,6 @@ var Font = (function FontClosure() {
this.widths = properties.widths;
this.defaultWidth = properties.defaultWidth;
this.toUnicode = properties.toUnicode;
this.encoding = properties.baseEncoding;
this.seacMap = properties.seacMap;
}
@ -1253,7 +1251,6 @@ var Font = (function FontClosure() {
name: null,
font: null,
mimetype: null,
encoding: null,
disableFontFace: false,
get renderer() {