Enable the no-var
linting rule in src/core/metrics.js
This commit is contained in:
parent
052db45e7a
commit
cb82dda755
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user