mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Adds UMD headers to core, display and shared files.
This commit is contained in:
parent
1b5940edd2
commit
6b60c8f4db
54 changed files with 1876 additions and 572 deletions
|
@ -15,6 +15,16 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/core/metrics', ['exports'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports);
|
||||
} else {
|
||||
factory((root.pdfjsCoreMetrics = {}));
|
||||
}
|
||||
}(this, function (exports) {
|
||||
|
||||
// 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.
|
||||
|
@ -2956,3 +2966,6 @@ var Metrics = {
|
|||
'a191': 918
|
||||
}
|
||||
};
|
||||
|
||||
exports.Metrics = Metrics;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue