mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Enable the no-var
linting rule in src/core/metrics.js
This commit is contained in:
parent
052db45e7a
commit
cb82dda755
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue