Skip to content

Commit

Permalink
Merge pull request #11755 from Snuffleupagus/rm-fonts-sizes-encoding
Browse files Browse the repository at this point in the history
Remove the unused `sizes` and `encoding` properties on `Font` instances
  • Loading branch information
timvandermeij authored Mar 27, 2020
2 parents fa4b431 + 14c999e commit c12ea21
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -1253,7 +1251,6 @@ var Font = (function FontClosure() {
name: null,
font: null,
mimetype: null,
encoding: null,
disableFontFace: false,

get renderer() {
Expand Down

0 comments on commit c12ea21

Please sign in to comment.