Run gulp lint --fix
, to account for changes in Prettier version 2.1.x
This commit is contained in:
parent
60c9556b66
commit
6c8f1f7d6f
@ -3084,21 +3084,21 @@ var Font = (function FontClosure() {
|
|||||||
builder.addTable(
|
builder.addTable(
|
||||||
"head",
|
"head",
|
||||||
"\x00\x01\x00\x00" + // Version number
|
"\x00\x01\x00\x00" + // Version number
|
||||||
"\x00\x00\x10\x00" + // fontRevision
|
"\x00\x00\x10\x00" + // fontRevision
|
||||||
"\x00\x00\x00\x00" + // checksumAdjustement
|
"\x00\x00\x00\x00" + // checksumAdjustement
|
||||||
"\x5F\x0F\x3C\xF5" + // magicNumber
|
"\x5F\x0F\x3C\xF5" + // magicNumber
|
||||||
"\x00\x00" + // Flags
|
"\x00\x00" + // Flags
|
||||||
safeString16(unitsPerEm) + // unitsPerEM
|
safeString16(unitsPerEm) + // unitsPerEM
|
||||||
"\x00\x00\x00\x00\x9e\x0b\x7e\x27" + // creation date
|
"\x00\x00\x00\x00\x9e\x0b\x7e\x27" + // creation date
|
||||||
"\x00\x00\x00\x00\x9e\x0b\x7e\x27" + // modifification date
|
"\x00\x00\x00\x00\x9e\x0b\x7e\x27" + // modifification date
|
||||||
"\x00\x00" + // xMin
|
"\x00\x00" + // xMin
|
||||||
safeString16(properties.descent) + // yMin
|
safeString16(properties.descent) + // yMin
|
||||||
"\x0F\xFF" + // xMax
|
"\x0F\xFF" + // xMax
|
||||||
safeString16(properties.ascent) + // yMax
|
safeString16(properties.ascent) + // yMax
|
||||||
string16(properties.italicAngle ? 2 : 0) + // macStyle
|
string16(properties.italicAngle ? 2 : 0) + // macStyle
|
||||||
"\x00\x11" + // lowestRecPPEM
|
"\x00\x11" + // lowestRecPPEM
|
||||||
"\x00\x00" + // fontDirectionHint
|
"\x00\x00" + // fontDirectionHint
|
||||||
"\x00\x00" + // indexToLocFormat
|
"\x00\x00" + // indexToLocFormat
|
||||||
"\x00\x00"
|
"\x00\x00"
|
||||||
); // glyphDataFormat
|
); // glyphDataFormat
|
||||||
|
|
||||||
@ -3106,21 +3106,21 @@ var Font = (function FontClosure() {
|
|||||||
builder.addTable(
|
builder.addTable(
|
||||||
"hhea",
|
"hhea",
|
||||||
"\x00\x01\x00\x00" + // Version number
|
"\x00\x01\x00\x00" + // Version number
|
||||||
safeString16(properties.ascent) + // Typographic Ascent
|
safeString16(properties.ascent) + // Typographic Ascent
|
||||||
safeString16(properties.descent) + // Typographic Descent
|
safeString16(properties.descent) + // Typographic Descent
|
||||||
"\x00\x00" + // Line Gap
|
"\x00\x00" + // Line Gap
|
||||||
"\xFF\xFF" + // advanceWidthMax
|
"\xFF\xFF" + // advanceWidthMax
|
||||||
"\x00\x00" + // minLeftSidebearing
|
"\x00\x00" + // minLeftSidebearing
|
||||||
"\x00\x00" + // minRightSidebearing
|
"\x00\x00" + // minRightSidebearing
|
||||||
"\x00\x00" + // xMaxExtent
|
"\x00\x00" + // xMaxExtent
|
||||||
safeString16(properties.capHeight) + // caretSlopeRise
|
safeString16(properties.capHeight) + // caretSlopeRise
|
||||||
safeString16(Math.tan(properties.italicAngle) * properties.xHeight) + // caretSlopeRun
|
safeString16(Math.tan(properties.italicAngle) * properties.xHeight) + // caretSlopeRun
|
||||||
"\x00\x00" + // caretOffset
|
"\x00\x00" + // caretOffset
|
||||||
"\x00\x00" + // -reserved-
|
"\x00\x00" + // -reserved-
|
||||||
"\x00\x00" + // -reserved-
|
"\x00\x00" + // -reserved-
|
||||||
"\x00\x00" + // -reserved-
|
"\x00\x00" + // -reserved-
|
||||||
"\x00\x00" + // -reserved-
|
"\x00\x00" + // -reserved-
|
||||||
"\x00\x00" + // metricDataFormat
|
"\x00\x00" + // metricDataFormat
|
||||||
string16(numGlyphs)
|
string16(numGlyphs)
|
||||||
); // Number of HMetrics
|
); // Number of HMetrics
|
||||||
|
|
||||||
|
@ -579,16 +579,16 @@ class PDFDateString {
|
|||||||
if (!pdfDateStringRegex) {
|
if (!pdfDateStringRegex) {
|
||||||
pdfDateStringRegex = new RegExp(
|
pdfDateStringRegex = new RegExp(
|
||||||
"^D:" + // Prefix (required)
|
"^D:" + // Prefix (required)
|
||||||
"(\\d{4})" + // Year (required)
|
"(\\d{4})" + // Year (required)
|
||||||
"(\\d{2})?" + // Month (optional)
|
"(\\d{2})?" + // Month (optional)
|
||||||
"(\\d{2})?" + // Day (optional)
|
"(\\d{2})?" + // Day (optional)
|
||||||
"(\\d{2})?" + // Hour (optional)
|
"(\\d{2})?" + // Hour (optional)
|
||||||
"(\\d{2})?" + // Minute (optional)
|
"(\\d{2})?" + // Minute (optional)
|
||||||
"(\\d{2})?" + // Second (optional)
|
"(\\d{2})?" + // Second (optional)
|
||||||
"([Z|+|-])?" + // Universal time relation (optional)
|
"([Z|+|-])?" + // Universal time relation (optional)
|
||||||
"(\\d{2})?" + // Offset hour (optional)
|
"(\\d{2})?" + // Offset hour (optional)
|
||||||
"'?" + // Splitting apostrophe (optional)
|
"'?" + // Splitting apostrophe (optional)
|
||||||
"(\\d{2})?" + // Offset minute (optional)
|
"(\\d{2})?" + // Offset minute (optional)
|
||||||
"'?" // Trailing apostrophe (optional)
|
"'?" // Trailing apostrophe (optional)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -224,7 +224,7 @@ describe("display_utils", function () {
|
|||||||
undefined: null,
|
undefined: null,
|
||||||
null: null,
|
null: null,
|
||||||
42: null,
|
42: null,
|
||||||
"2019": null,
|
2019: null,
|
||||||
D2019: null,
|
D2019: null,
|
||||||
"D:": null,
|
"D:": null,
|
||||||
"D:201": null,
|
"D:201": null,
|
||||||
|
@ -21,8 +21,8 @@ describe("pdf_find_utils", function () {
|
|||||||
const characters = {
|
const characters = {
|
||||||
A: CharacterType.ALPHA_LETTER,
|
A: CharacterType.ALPHA_LETTER,
|
||||||
a: CharacterType.ALPHA_LETTER,
|
a: CharacterType.ALPHA_LETTER,
|
||||||
"0": CharacterType.ALPHA_LETTER,
|
0: CharacterType.ALPHA_LETTER,
|
||||||
"5": CharacterType.ALPHA_LETTER,
|
5: CharacterType.ALPHA_LETTER,
|
||||||
"\xC4": CharacterType.ALPHA_LETTER, // "Ä"
|
"\xC4": CharacterType.ALPHA_LETTER, // "Ä"
|
||||||
"\xE4": CharacterType.ALPHA_LETTER, // "ä"
|
"\xE4": CharacterType.ALPHA_LETTER, // "ä"
|
||||||
_: CharacterType.ALPHA_LETTER,
|
_: CharacterType.ALPHA_LETTER,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user