mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Run gulp lint --fix
, to account for changes in Prettier version 2.1.x
This commit is contained in:
parent
60c9556b66
commit
6c8f1f7d6f
4 changed files with 43 additions and 43 deletions
|
@ -3084,21 +3084,21 @@ var Font = (function FontClosure() {
|
|||
builder.addTable(
|
||||
"head",
|
||||
"\x00\x01\x00\x00" + // Version number
|
||||
"\x00\x00\x10\x00" + // fontRevision
|
||||
"\x00\x00\x00\x00" + // checksumAdjustement
|
||||
"\x5F\x0F\x3C\xF5" + // magicNumber
|
||||
"\x00\x00" + // Flags
|
||||
safeString16(unitsPerEm) + // unitsPerEM
|
||||
"\x00\x00\x00\x00\x9e\x0b\x7e\x27" + // creation date
|
||||
"\x00\x00\x00\x00\x9e\x0b\x7e\x27" + // modifification date
|
||||
"\x00\x00" + // xMin
|
||||
safeString16(properties.descent) + // yMin
|
||||
"\x0F\xFF" + // xMax
|
||||
safeString16(properties.ascent) + // yMax
|
||||
string16(properties.italicAngle ? 2 : 0) + // macStyle
|
||||
"\x00\x11" + // lowestRecPPEM
|
||||
"\x00\x00" + // fontDirectionHint
|
||||
"\x00\x00" + // indexToLocFormat
|
||||
"\x00\x00\x10\x00" + // fontRevision
|
||||
"\x00\x00\x00\x00" + // checksumAdjustement
|
||||
"\x5F\x0F\x3C\xF5" + // magicNumber
|
||||
"\x00\x00" + // Flags
|
||||
safeString16(unitsPerEm) + // unitsPerEM
|
||||
"\x00\x00\x00\x00\x9e\x0b\x7e\x27" + // creation date
|
||||
"\x00\x00\x00\x00\x9e\x0b\x7e\x27" + // modifification date
|
||||
"\x00\x00" + // xMin
|
||||
safeString16(properties.descent) + // yMin
|
||||
"\x0F\xFF" + // xMax
|
||||
safeString16(properties.ascent) + // yMax
|
||||
string16(properties.italicAngle ? 2 : 0) + // macStyle
|
||||
"\x00\x11" + // lowestRecPPEM
|
||||
"\x00\x00" + // fontDirectionHint
|
||||
"\x00\x00" + // indexToLocFormat
|
||||
"\x00\x00"
|
||||
); // glyphDataFormat
|
||||
|
||||
|
@ -3106,21 +3106,21 @@ var Font = (function FontClosure() {
|
|||
builder.addTable(
|
||||
"hhea",
|
||||
"\x00\x01\x00\x00" + // Version number
|
||||
safeString16(properties.ascent) + // Typographic Ascent
|
||||
safeString16(properties.descent) + // Typographic Descent
|
||||
"\x00\x00" + // Line Gap
|
||||
"\xFF\xFF" + // advanceWidthMax
|
||||
"\x00\x00" + // minLeftSidebearing
|
||||
"\x00\x00" + // minRightSidebearing
|
||||
"\x00\x00" + // xMaxExtent
|
||||
safeString16(properties.capHeight) + // caretSlopeRise
|
||||
safeString16(Math.tan(properties.italicAngle) * properties.xHeight) + // caretSlopeRun
|
||||
"\x00\x00" + // caretOffset
|
||||
"\x00\x00" + // -reserved-
|
||||
"\x00\x00" + // -reserved-
|
||||
"\x00\x00" + // -reserved-
|
||||
"\x00\x00" + // -reserved-
|
||||
"\x00\x00" + // metricDataFormat
|
||||
safeString16(properties.ascent) + // Typographic Ascent
|
||||
safeString16(properties.descent) + // Typographic Descent
|
||||
"\x00\x00" + // Line Gap
|
||||
"\xFF\xFF" + // advanceWidthMax
|
||||
"\x00\x00" + // minLeftSidebearing
|
||||
"\x00\x00" + // minRightSidebearing
|
||||
"\x00\x00" + // xMaxExtent
|
||||
safeString16(properties.capHeight) + // caretSlopeRise
|
||||
safeString16(Math.tan(properties.italicAngle) * properties.xHeight) + // caretSlopeRun
|
||||
"\x00\x00" + // caretOffset
|
||||
"\x00\x00" + // -reserved-
|
||||
"\x00\x00" + // -reserved-
|
||||
"\x00\x00" + // -reserved-
|
||||
"\x00\x00" + // -reserved-
|
||||
"\x00\x00" + // metricDataFormat
|
||||
string16(numGlyphs)
|
||||
); // Number of HMetrics
|
||||
|
||||
|
|
|
@ -579,16 +579,16 @@ class PDFDateString {
|
|||
if (!pdfDateStringRegex) {
|
||||
pdfDateStringRegex = new RegExp(
|
||||
"^D:" + // Prefix (required)
|
||||
"(\\d{4})" + // Year (required)
|
||||
"(\\d{2})?" + // Month (optional)
|
||||
"(\\d{2})?" + // Day (optional)
|
||||
"(\\d{2})?" + // Hour (optional)
|
||||
"(\\d{2})?" + // Minute (optional)
|
||||
"(\\d{2})?" + // Second (optional)
|
||||
"([Z|+|-])?" + // Universal time relation (optional)
|
||||
"(\\d{2})?" + // Offset hour (optional)
|
||||
"'?" + // Splitting apostrophe (optional)
|
||||
"(\\d{2})?" + // Offset minute (optional)
|
||||
"(\\d{4})" + // Year (required)
|
||||
"(\\d{2})?" + // Month (optional)
|
||||
"(\\d{2})?" + // Day (optional)
|
||||
"(\\d{2})?" + // Hour (optional)
|
||||
"(\\d{2})?" + // Minute (optional)
|
||||
"(\\d{2})?" + // Second (optional)
|
||||
"([Z|+|-])?" + // Universal time relation (optional)
|
||||
"(\\d{2})?" + // Offset hour (optional)
|
||||
"'?" + // Splitting apostrophe (optional)
|
||||
"(\\d{2})?" + // Offset minute (optional)
|
||||
"'?" // Trailing apostrophe (optional)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue