Enable the no-var linting rule in src/core/metrics.js

This commit is contained in:
Tim van der Meij 2021-02-27 12:37:34 +01:00
parent 052db45e7a
commit cb82dda755
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -12,14 +12,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
/* eslint-disable no-var */
import { getLookupTableFactory } from "./core_utils.js"; import { getLookupTableFactory } from "./core_utils.js";
// The Metrics object contains glyph widths (in glyph space units). // The Metrics object contains glyph widths (in glyph space units).
// As per PDF spec, for most fonts (Type 3 being an exception) a glyph // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
// space unit corresponds to 1/1000th of text space unit. // 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 = 600;
t["Courier-Bold"] = 600; t["Courier-Bold"] = 600;
t["Courier-BoldOblique"] = 600; t["Courier-BoldOblique"] = 600;