Fix a couple of cases where Prettier broke existing formatting (PR 11446 follow-up)
These two cases should have been whitelisted prior to re-formatting respectively had the comments fixed afterwards, however I unfortunately missed them because of the massive size of the diff.
This commit is contained in:
parent
ead03b513c
commit
3b78f4e8f8
@ -97,266 +97,44 @@ var FontFlags = {
|
|||||||
ForceBold: 262144,
|
ForceBold: 262144,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// prettier-ignore
|
||||||
var MacStandardGlyphOrdering = [
|
var MacStandardGlyphOrdering = [
|
||||||
".notdef",
|
".notdef", ".null", "nonmarkingreturn", "space", "exclam", "quotedbl",
|
||||||
".null",
|
"numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft",
|
||||||
"nonmarkingreturn",
|
"parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash",
|
||||||
"space",
|
"zero", "one", "two", "three", "four", "five", "six", "seven", "eight",
|
||||||
"exclam",
|
"nine", "colon", "semicolon", "less", "equal", "greater", "question", "at",
|
||||||
"quotedbl",
|
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O",
|
||||||
"numbersign",
|
"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft",
|
||||||
"dollar",
|
"backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b",
|
||||||
"percent",
|
"c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q",
|
||||||
"ampersand",
|
"r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright",
|
||||||
"quotesingle",
|
"asciitilde", "Adieresis", "Aring", "Ccedilla", "Eacute", "Ntilde",
|
||||||
"parenleft",
|
"Odieresis", "Udieresis", "aacute", "agrave", "acircumflex", "adieresis",
|
||||||
"parenright",
|
"atilde", "aring", "ccedilla", "eacute", "egrave", "ecircumflex", "edieresis",
|
||||||
"asterisk",
|
"iacute", "igrave", "icircumflex", "idieresis", "ntilde", "oacute", "ograve",
|
||||||
"plus",
|
"ocircumflex", "odieresis", "otilde", "uacute", "ugrave", "ucircumflex",
|
||||||
"comma",
|
"udieresis", "dagger", "degree", "cent", "sterling", "section", "bullet",
|
||||||
"hyphen",
|
"paragraph", "germandbls", "registered", "copyright", "trademark", "acute",
|
||||||
"period",
|
"dieresis", "notequal", "AE", "Oslash", "infinity", "plusminus", "lessequal",
|
||||||
"slash",
|
"greaterequal", "yen", "mu", "partialdiff", "summation", "product", "pi",
|
||||||
"zero",
|
"integral", "ordfeminine", "ordmasculine", "Omega", "ae", "oslash",
|
||||||
"one",
|
"questiondown", "exclamdown", "logicalnot", "radical", "florin",
|
||||||
"two",
|
"approxequal", "Delta", "guillemotleft", "guillemotright", "ellipsis",
|
||||||
"three",
|
"nonbreakingspace", "Agrave", "Atilde", "Otilde", "OE", "oe", "endash",
|
||||||
"four",
|
"emdash", "quotedblleft", "quotedblright", "quoteleft", "quoteright",
|
||||||
"five",
|
"divide", "lozenge", "ydieresis", "Ydieresis", "fraction", "currency",
|
||||||
"six",
|
"guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl", "periodcentered",
|
||||||
"seven",
|
"quotesinglbase", "quotedblbase", "perthousand", "Acircumflex",
|
||||||
"eight",
|
"Ecircumflex", "Aacute", "Edieresis", "Egrave", "Iacute", "Icircumflex",
|
||||||
"nine",
|
"Idieresis", "Igrave", "Oacute", "Ocircumflex", "apple", "Ograve", "Uacute",
|
||||||
"colon",
|
"Ucircumflex", "Ugrave", "dotlessi", "circumflex", "tilde", "macron",
|
||||||
"semicolon",
|
"breve", "dotaccent", "ring", "cedilla", "hungarumlaut", "ogonek", "caron",
|
||||||
"less",
|
"Lslash", "lslash", "Scaron", "scaron", "Zcaron", "zcaron", "brokenbar",
|
||||||
"equal",
|
"Eth", "eth", "Yacute", "yacute", "Thorn", "thorn", "minus", "multiply",
|
||||||
"greater",
|
"onesuperior", "twosuperior", "threesuperior", "onehalf", "onequarter",
|
||||||
"question",
|
"threequarters", "franc", "Gbreve", "gbreve", "Idotaccent", "Scedilla",
|
||||||
"at",
|
"scedilla", "Cacute", "cacute", "Ccaron", "ccaron", "dcroat"];
|
||||||
"A",
|
|
||||||
"B",
|
|
||||||
"C",
|
|
||||||
"D",
|
|
||||||
"E",
|
|
||||||
"F",
|
|
||||||
"G",
|
|
||||||
"H",
|
|
||||||
"I",
|
|
||||||
"J",
|
|
||||||
"K",
|
|
||||||
"L",
|
|
||||||
"M",
|
|
||||||
"N",
|
|
||||||
"O",
|
|
||||||
"P",
|
|
||||||
"Q",
|
|
||||||
"R",
|
|
||||||
"S",
|
|
||||||
"T",
|
|
||||||
"U",
|
|
||||||
"V",
|
|
||||||
"W",
|
|
||||||
"X",
|
|
||||||
"Y",
|
|
||||||
"Z",
|
|
||||||
"bracketleft",
|
|
||||||
"backslash",
|
|
||||||
"bracketright",
|
|
||||||
"asciicircum",
|
|
||||||
"underscore",
|
|
||||||
"grave",
|
|
||||||
"a",
|
|
||||||
"b",
|
|
||||||
"c",
|
|
||||||
"d",
|
|
||||||
"e",
|
|
||||||
"f",
|
|
||||||
"g",
|
|
||||||
"h",
|
|
||||||
"i",
|
|
||||||
"j",
|
|
||||||
"k",
|
|
||||||
"l",
|
|
||||||
"m",
|
|
||||||
"n",
|
|
||||||
"o",
|
|
||||||
"p",
|
|
||||||
"q",
|
|
||||||
"r",
|
|
||||||
"s",
|
|
||||||
"t",
|
|
||||||
"u",
|
|
||||||
"v",
|
|
||||||
"w",
|
|
||||||
"x",
|
|
||||||
"y",
|
|
||||||
"z",
|
|
||||||
"braceleft",
|
|
||||||
"bar",
|
|
||||||
"braceright",
|
|
||||||
"asciitilde",
|
|
||||||
"Adieresis",
|
|
||||||
"Aring",
|
|
||||||
"Ccedilla",
|
|
||||||
"Eacute",
|
|
||||||
"Ntilde",
|
|
||||||
"Odieresis",
|
|
||||||
"Udieresis",
|
|
||||||
"aacute",
|
|
||||||
"agrave",
|
|
||||||
"acircumflex",
|
|
||||||
"adieresis",
|
|
||||||
"atilde",
|
|
||||||
"aring",
|
|
||||||
"ccedilla",
|
|
||||||
"eacute",
|
|
||||||
"egrave",
|
|
||||||
"ecircumflex",
|
|
||||||
"edieresis",
|
|
||||||
"iacute",
|
|
||||||
"igrave",
|
|
||||||
"icircumflex",
|
|
||||||
"idieresis",
|
|
||||||
"ntilde",
|
|
||||||
"oacute",
|
|
||||||
"ograve",
|
|
||||||
"ocircumflex",
|
|
||||||
"odieresis",
|
|
||||||
"otilde",
|
|
||||||
"uacute",
|
|
||||||
"ugrave",
|
|
||||||
"ucircumflex",
|
|
||||||
"udieresis",
|
|
||||||
"dagger",
|
|
||||||
"degree",
|
|
||||||
"cent",
|
|
||||||
"sterling",
|
|
||||||
"section",
|
|
||||||
"bullet",
|
|
||||||
"paragraph",
|
|
||||||
"germandbls",
|
|
||||||
"registered",
|
|
||||||
"copyright",
|
|
||||||
"trademark",
|
|
||||||
"acute",
|
|
||||||
"dieresis",
|
|
||||||
"notequal",
|
|
||||||
"AE",
|
|
||||||
"Oslash",
|
|
||||||
"infinity",
|
|
||||||
"plusminus",
|
|
||||||
"lessequal",
|
|
||||||
"greaterequal",
|
|
||||||
"yen",
|
|
||||||
"mu",
|
|
||||||
"partialdiff",
|
|
||||||
"summation",
|
|
||||||
"product",
|
|
||||||
"pi",
|
|
||||||
"integral",
|
|
||||||
"ordfeminine",
|
|
||||||
"ordmasculine",
|
|
||||||
"Omega",
|
|
||||||
"ae",
|
|
||||||
"oslash",
|
|
||||||
"questiondown",
|
|
||||||
"exclamdown",
|
|
||||||
"logicalnot",
|
|
||||||
"radical",
|
|
||||||
"florin",
|
|
||||||
"approxequal",
|
|
||||||
"Delta",
|
|
||||||
"guillemotleft",
|
|
||||||
"guillemotright",
|
|
||||||
"ellipsis",
|
|
||||||
"nonbreakingspace",
|
|
||||||
"Agrave",
|
|
||||||
"Atilde",
|
|
||||||
"Otilde",
|
|
||||||
"OE",
|
|
||||||
"oe",
|
|
||||||
"endash",
|
|
||||||
"emdash",
|
|
||||||
"quotedblleft",
|
|
||||||
"quotedblright",
|
|
||||||
"quoteleft",
|
|
||||||
"quoteright",
|
|
||||||
"divide",
|
|
||||||
"lozenge",
|
|
||||||
"ydieresis",
|
|
||||||
"Ydieresis",
|
|
||||||
"fraction",
|
|
||||||
"currency",
|
|
||||||
"guilsinglleft",
|
|
||||||
"guilsinglright",
|
|
||||||
"fi",
|
|
||||||
"fl",
|
|
||||||
"daggerdbl",
|
|
||||||
"periodcentered",
|
|
||||||
"quotesinglbase",
|
|
||||||
"quotedblbase",
|
|
||||||
"perthousand",
|
|
||||||
"Acircumflex",
|
|
||||||
"Ecircumflex",
|
|
||||||
"Aacute",
|
|
||||||
"Edieresis",
|
|
||||||
"Egrave",
|
|
||||||
"Iacute",
|
|
||||||
"Icircumflex",
|
|
||||||
"Idieresis",
|
|
||||||
"Igrave",
|
|
||||||
"Oacute",
|
|
||||||
"Ocircumflex",
|
|
||||||
"apple",
|
|
||||||
"Ograve",
|
|
||||||
"Uacute",
|
|
||||||
"Ucircumflex",
|
|
||||||
"Ugrave",
|
|
||||||
"dotlessi",
|
|
||||||
"circumflex",
|
|
||||||
"tilde",
|
|
||||||
"macron",
|
|
||||||
"breve",
|
|
||||||
"dotaccent",
|
|
||||||
"ring",
|
|
||||||
"cedilla",
|
|
||||||
"hungarumlaut",
|
|
||||||
"ogonek",
|
|
||||||
"caron",
|
|
||||||
"Lslash",
|
|
||||||
"lslash",
|
|
||||||
"Scaron",
|
|
||||||
"scaron",
|
|
||||||
"Zcaron",
|
|
||||||
"zcaron",
|
|
||||||
"brokenbar",
|
|
||||||
"Eth",
|
|
||||||
"eth",
|
|
||||||
"Yacute",
|
|
||||||
"yacute",
|
|
||||||
"Thorn",
|
|
||||||
"thorn",
|
|
||||||
"minus",
|
|
||||||
"multiply",
|
|
||||||
"onesuperior",
|
|
||||||
"twosuperior",
|
|
||||||
"threesuperior",
|
|
||||||
"onehalf",
|
|
||||||
"onequarter",
|
|
||||||
"threequarters",
|
|
||||||
"franc",
|
|
||||||
"Gbreve",
|
|
||||||
"gbreve",
|
|
||||||
"Idotaccent",
|
|
||||||
"Scedilla",
|
|
||||||
"scedilla",
|
|
||||||
"Cacute",
|
|
||||||
"cacute",
|
|
||||||
"Ccaron",
|
|
||||||
"ccaron",
|
|
||||||
"dcroat",
|
|
||||||
];
|
|
||||||
|
|
||||||
function adjustWidths(properties) {
|
function adjustWidths(properties) {
|
||||||
if (!properties.fontMatrix) {
|
if (!properties.fontMatrix) {
|
||||||
|
@ -440,14 +440,14 @@ var Type1Parser = (function Type1ParserClosure() {
|
|||||||
|
|
||||||
function isSpecial(c) {
|
function isSpecial(c) {
|
||||||
return (
|
return (
|
||||||
c === 0x2f || // '/'
|
c === /* '/' = */ 0x2f ||
|
||||||
c === 0x5b ||
|
c === /* '[' = */ 0x5b ||
|
||||||
c === 0x5d || // '[', ']'
|
c === /* ']' = */ 0x5d ||
|
||||||
c === 0x7b ||
|
c === /* '{' = */ 0x7b ||
|
||||||
c === 0x7d || // '{', '}'
|
c === /* '}' = */ 0x7d ||
|
||||||
c === 0x28 ||
|
c === /* '(' = */ 0x28 ||
|
||||||
c === 0x29
|
c === /* ')' = */ 0x29
|
||||||
); // '(', ')'
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function Type1Parser(stream, encrypted, seacAnalysisEnabled) {
|
function Type1Parser(stream, encrypted, seacAnalysisEnabled) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user