diff --git a/src/core/metrics.js b/src/core/metrics.js index e95d6316a..2d8650142 100644 --- a/src/core/metrics.js +++ b/src/core/metrics.js @@ -12,14 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* eslint-disable no-var */ import { getLookupTableFactory } from "./core_utils.js"; // The Metrics object contains glyph widths (in glyph space units). // As per PDF spec, for most fonts (Type 3 being an exception) a glyph // space unit corresponds to 1/1000th of text space unit. -var getMetrics = getLookupTableFactory(function (t) { +const getMetrics = getLookupTableFactory(function (t) { t.Courier = 600; t["Courier-Bold"] = 600; t["Courier-BoldOblique"] = 600;