Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/embedpre.../assets/pdf/build
File: pdf.worker.js
return;
[14500] Fix | Delete
}
[14501] Fix | Delete
if (typeof obj !== "string") {
[14502] Fix | Delete
break;
[14503] Fix | Delete
}
[14504] Fix | Delete
const low = strToInt(obj);
[14505] Fix | Delete
obj = lexer.getObj();
[14506] Fix | Delete
if (typeof obj !== "string") {
[14507] Fix | Delete
break;
[14508] Fix | Delete
}
[14509] Fix | Delete
const high = strToInt(obj);
[14510] Fix | Delete
cMap.addCodespaceRange(obj.length, low, high);
[14511] Fix | Delete
}
[14512] Fix | Delete
throw new FormatError("Invalid codespace range.");
[14513] Fix | Delete
}
[14514] Fix | Delete
function parseWMode(cMap, lexer) {
[14515] Fix | Delete
const obj = lexer.getObj();
[14516] Fix | Delete
if (Number.isInteger(obj)) {
[14517] Fix | Delete
cMap.vertical = !!obj;
[14518] Fix | Delete
}
[14519] Fix | Delete
}
[14520] Fix | Delete
function parseCMapName(cMap, lexer) {
[14521] Fix | Delete
const obj = lexer.getObj();
[14522] Fix | Delete
if (obj instanceof Name) {
[14523] Fix | Delete
cMap.name = obj.name;
[14524] Fix | Delete
}
[14525] Fix | Delete
}
[14526] Fix | Delete
async function parseCMap(cMap, lexer, fetchBuiltInCMap, useCMap) {
[14527] Fix | Delete
let previous, embeddedUseCMap;
[14528] Fix | Delete
objLoop: while (true) {
[14529] Fix | Delete
try {
[14530] Fix | Delete
const obj = lexer.getObj();
[14531] Fix | Delete
if (obj === EOF) {
[14532] Fix | Delete
break;
[14533] Fix | Delete
} else if (obj instanceof Name) {
[14534] Fix | Delete
if (obj.name === "WMode") {
[14535] Fix | Delete
parseWMode(cMap, lexer);
[14536] Fix | Delete
} else if (obj.name === "CMapName") {
[14537] Fix | Delete
parseCMapName(cMap, lexer);
[14538] Fix | Delete
}
[14539] Fix | Delete
previous = obj;
[14540] Fix | Delete
} else if (obj instanceof Cmd) {
[14541] Fix | Delete
switch (obj.cmd) {
[14542] Fix | Delete
case "endcmap":
[14543] Fix | Delete
break objLoop;
[14544] Fix | Delete
case "usecmap":
[14545] Fix | Delete
if (previous instanceof Name) {
[14546] Fix | Delete
embeddedUseCMap = previous.name;
[14547] Fix | Delete
}
[14548] Fix | Delete
break;
[14549] Fix | Delete
case "begincodespacerange":
[14550] Fix | Delete
parseCodespaceRange(cMap, lexer);
[14551] Fix | Delete
break;
[14552] Fix | Delete
case "beginbfchar":
[14553] Fix | Delete
parseBfChar(cMap, lexer);
[14554] Fix | Delete
break;
[14555] Fix | Delete
case "begincidchar":
[14556] Fix | Delete
parseCidChar(cMap, lexer);
[14557] Fix | Delete
break;
[14558] Fix | Delete
case "beginbfrange":
[14559] Fix | Delete
parseBfRange(cMap, lexer);
[14560] Fix | Delete
break;
[14561] Fix | Delete
case "begincidrange":
[14562] Fix | Delete
parseCidRange(cMap, lexer);
[14563] Fix | Delete
break;
[14564] Fix | Delete
}
[14565] Fix | Delete
}
[14566] Fix | Delete
} catch (ex) {
[14567] Fix | Delete
if (ex instanceof MissingDataException) {
[14568] Fix | Delete
throw ex;
[14569] Fix | Delete
}
[14570] Fix | Delete
warn("Invalid cMap data: " + ex);
[14571] Fix | Delete
continue;
[14572] Fix | Delete
}
[14573] Fix | Delete
}
[14574] Fix | Delete
if (!useCMap && embeddedUseCMap) {
[14575] Fix | Delete
useCMap = embeddedUseCMap;
[14576] Fix | Delete
}
[14577] Fix | Delete
if (useCMap) {
[14578] Fix | Delete
return extendCMap(cMap, fetchBuiltInCMap, useCMap);
[14579] Fix | Delete
}
[14580] Fix | Delete
return cMap;
[14581] Fix | Delete
}
[14582] Fix | Delete
async function extendCMap(cMap, fetchBuiltInCMap, useCMap) {
[14583] Fix | Delete
cMap.useCMap = await createBuiltInCMap(useCMap, fetchBuiltInCMap);
[14584] Fix | Delete
if (cMap.numCodespaceRanges === 0) {
[14585] Fix | Delete
const useCodespaceRanges = cMap.useCMap.codespaceRanges;
[14586] Fix | Delete
for (let i = 0; i < useCodespaceRanges.length; i++) {
[14587] Fix | Delete
cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
[14588] Fix | Delete
}
[14589] Fix | Delete
cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
[14590] Fix | Delete
}
[14591] Fix | Delete
cMap.useCMap.forEach(function (key, value) {
[14592] Fix | Delete
if (!cMap.contains(key)) {
[14593] Fix | Delete
cMap.mapOne(key, cMap.useCMap.lookup(key));
[14594] Fix | Delete
}
[14595] Fix | Delete
});
[14596] Fix | Delete
return cMap;
[14597] Fix | Delete
}
[14598] Fix | Delete
async function createBuiltInCMap(name, fetchBuiltInCMap) {
[14599] Fix | Delete
if (name === "Identity-H") {
[14600] Fix | Delete
return new IdentityCMap(false, 2);
[14601] Fix | Delete
} else if (name === "Identity-V") {
[14602] Fix | Delete
return new IdentityCMap(true, 2);
[14603] Fix | Delete
}
[14604] Fix | Delete
if (!BUILT_IN_CMAPS.includes(name)) {
[14605] Fix | Delete
throw new Error("Unknown CMap name: " + name);
[14606] Fix | Delete
}
[14607] Fix | Delete
if (!fetchBuiltInCMap) {
[14608] Fix | Delete
throw new Error("Built-in CMap parameters are not provided.");
[14609] Fix | Delete
}
[14610] Fix | Delete
const {
[14611] Fix | Delete
cMapData,
[14612] Fix | Delete
compressionType
[14613] Fix | Delete
} = await fetchBuiltInCMap(name);
[14614] Fix | Delete
const cMap = new CMap(true);
[14615] Fix | Delete
if (compressionType === CMapCompressionType.BINARY) {
[14616] Fix | Delete
return new BinaryCMapReader().process(cMapData, cMap, useCMap => extendCMap(cMap, fetchBuiltInCMap, useCMap));
[14617] Fix | Delete
}
[14618] Fix | Delete
if (compressionType === CMapCompressionType.NONE) {
[14619] Fix | Delete
const lexer = new Lexer(new Stream(cMapData));
[14620] Fix | Delete
return parseCMap(cMap, lexer, fetchBuiltInCMap, null);
[14621] Fix | Delete
}
[14622] Fix | Delete
throw new Error(`Invalid CMap "compressionType" value: ${compressionType}`);
[14623] Fix | Delete
}
[14624] Fix | Delete
class CMapFactory {
[14625] Fix | Delete
static async create({
[14626] Fix | Delete
encoding,
[14627] Fix | Delete
fetchBuiltInCMap,
[14628] Fix | Delete
useCMap
[14629] Fix | Delete
}) {
[14630] Fix | Delete
if (encoding instanceof Name) {
[14631] Fix | Delete
return createBuiltInCMap(encoding.name, fetchBuiltInCMap);
[14632] Fix | Delete
} else if (encoding instanceof BaseStream) {
[14633] Fix | Delete
const parsedCMap = await parseCMap(new CMap(), new Lexer(encoding), fetchBuiltInCMap, useCMap);
[14634] Fix | Delete
if (parsedCMap.isIdentityCMap) {
[14635] Fix | Delete
return createBuiltInCMap(parsedCMap.name, fetchBuiltInCMap);
[14636] Fix | Delete
}
[14637] Fix | Delete
return parsedCMap;
[14638] Fix | Delete
}
[14639] Fix | Delete
throw new Error("Encoding required.");
[14640] Fix | Delete
}
[14641] Fix | Delete
}
[14642] Fix | Delete
[14643] Fix | Delete
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.to-array.js
[14644] Fix | Delete
var esnext_iterator_to_array = __webpack_require__(1795);
[14645] Fix | Delete
;// CONCATENATED MODULE: ./src/core/charsets.js
[14646] Fix | Delete
const ISOAdobeCharset = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "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", "quoteleft", "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", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron"];
[14647] Fix | Delete
const ExpertCharset = [".notdef", "space", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"];
[14648] Fix | Delete
const ExpertSubsetCharset = [".notdef", "space", "dollaroldstyle", "dollarsuperior", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "hyphensuperior", "colonmonetary", "onefitted", "rupiah", "centoldstyle", "figuredash", "hypheninferior", "onequarter", "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior"];
[14649] Fix | Delete
[14650] Fix | Delete
;// CONCATENATED MODULE: ./src/core/encodings.js
[14651] Fix | Delete
const ExpertEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclamsmall", "Hungarumlautsmall", "", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "", "", "", "isuperior", "", "", "lsuperior", "msuperior", "nsuperior", "osuperior", "", "", "rsuperior", "ssuperior", "tsuperior", "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdownsmall", "centoldstyle", "Lslashsmall", "", "", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "", "Dotaccentsmall", "", "", "Macronsmall", "", "", "figuredash", "hypheninferior", "", "", "Ogoneksmall", "Ringsmall", "Cedillasmall", "", "", "", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "", "", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"];
[14652] Fix | Delete
const MacExpertEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclamsmall", "Hungarumlautsmall", "centoldstyle", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "", "threequartersemdash", "", "questionsmall", "", "", "", "", "Ethsmall", "", "", "onequarter", "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "", "", "", "", "", "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior", "Circumflexsmall", "hypheninferior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "", "", "asuperior", "centsuperior", "", "", "", "", "Aacutesmall", "Agravesmall", "Acircumflexsmall", "Adieresissmall", "Atildesmall", "Aringsmall", "Ccedillasmall", "Eacutesmall", "Egravesmall", "Ecircumflexsmall", "Edieresissmall", "Iacutesmall", "Igravesmall", "Icircumflexsmall", "Idieresissmall", "Ntildesmall", "Oacutesmall", "Ogravesmall", "Ocircumflexsmall", "Odieresissmall", "Otildesmall", "Uacutesmall", "Ugravesmall", "Ucircumflexsmall", "Udieresissmall", "", "eightsuperior", "fourinferior", "threeinferior", "sixinferior", "eightinferior", "seveninferior", "Scaronsmall", "", "centinferior", "twoinferior", "", "Dieresissmall", "", "Caronsmall", "osuperior", "fiveinferior", "", "commainferior", "periodinferior", "Yacutesmall", "", "dollarinferior", "", "", "Thornsmall", "", "nineinferior", "zeroinferior", "Zcaronsmall", "AEsmall", "Oslashsmall", "questiondownsmall", "oneinferior", "Lslashsmall", "", "", "", "", "", "", "Cedillasmall", "", "", "", "", "", "OEsmall", "figuredash", "hyphensuperior", "", "", "", "", "exclamdownsmall", "", "Ydieresissmall", "", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "ninesuperior", "zerosuperior", "", "esuperior", "rsuperior", "tsuperior", "", "", "isuperior", "ssuperior", "dsuperior", "", "", "", "", "", "lsuperior", "Ogoneksmall", "Brevesmall", "Macronsmall", "bsuperior", "nsuperior", "msuperior", "commasuperior", "periodsuperior", "Dotaccentsmall", "Ringsmall", "", "", "", ""];
[14653] Fix | Delete
const MacRomanEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "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", "space", "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"];
[14654] Fix | Delete
const StandardEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "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", "quoteleft", "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", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "", "endash", "dagger", "daggerdbl", "periodcentered", "", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "", "questiondown", "", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "", "ring", "cedilla", "", "hungarumlaut", "ogonek", "caron", "emdash", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "AE", "", "ordfeminine", "", "", "", "", "Lslash", "Oslash", "OE", "ordmasculine", "", "", "", "", "", "ae", "", "", "", "dotlessi", "", "", "lslash", "oslash", "oe", "germandbls", "", "", "", ""];
[14655] Fix | Delete
const WinAnsiEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "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", "bullet", "Euro", "bullet", "quotesinglbase", "florin", "quotedblbase", "ellipsis", "dagger", "daggerdbl", "circumflex", "perthousand", "Scaron", "guilsinglleft", "OE", "bullet", "Zcaron", "bullet", "bullet", "quoteleft", "quoteright", "quotedblleft", "quotedblright", "bullet", "endash", "emdash", "tilde", "trademark", "scaron", "guilsinglright", "oe", "bullet", "zcaron", "Ydieresis", "space", "exclamdown", "cent", "sterling", "currency", "yen", "brokenbar", "section", "dieresis", "copyright", "ordfeminine", "guillemotleft", "logicalnot", "hyphen", "registered", "macron", "degree", "plusminus", "twosuperior", "threesuperior", "acute", "mu", "paragraph", "periodcentered", "cedilla", "onesuperior", "ordmasculine", "guillemotright", "onequarter", "onehalf", "threequarters", "questiondown", "Agrave", "Aacute", "Acircumflex", "Atilde", "Adieresis", "Aring", "AE", "Ccedilla", "Egrave", "Eacute", "Ecircumflex", "Edieresis", "Igrave", "Iacute", "Icircumflex", "Idieresis", "Eth", "Ntilde", "Ograve", "Oacute", "Ocircumflex", "Otilde", "Odieresis", "multiply", "Oslash", "Ugrave", "Uacute", "Ucircumflex", "Udieresis", "Yacute", "Thorn", "germandbls", "agrave", "aacute", "acircumflex", "atilde", "adieresis", "aring", "ae", "ccedilla", "egrave", "eacute", "ecircumflex", "edieresis", "igrave", "iacute", "icircumflex", "idieresis", "eth", "ntilde", "ograve", "oacute", "ocircumflex", "otilde", "odieresis", "divide", "oslash", "ugrave", "uacute", "ucircumflex", "udieresis", "yacute", "thorn", "ydieresis"];
[14656] Fix | Delete
const SymbolSetEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "universal", "numbersign", "existential", "percent", "ampersand", "suchthat", "parenleft", "parenright", "asteriskmath", "plus", "comma", "minus", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "congruent", "Alpha", "Beta", "Chi", "Delta", "Epsilon", "Phi", "Gamma", "Eta", "Iota", "theta1", "Kappa", "Lambda", "Mu", "Nu", "Omicron", "Pi", "Theta", "Rho", "Sigma", "Tau", "Upsilon", "sigma1", "Omega", "Xi", "Psi", "Zeta", "bracketleft", "therefore", "bracketright", "perpendicular", "underscore", "radicalex", "alpha", "beta", "chi", "delta", "epsilon", "phi", "gamma", "eta", "iota", "phi1", "kappa", "lambda", "mu", "nu", "omicron", "pi", "theta", "rho", "sigma", "tau", "upsilon", "omega1", "omega", "xi", "psi", "zeta", "braceleft", "bar", "braceright", "similar", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Euro", "Upsilon1", "minute", "lessequal", "fraction", "infinity", "florin", "club", "diamond", "heart", "spade", "arrowboth", "arrowleft", "arrowup", "arrowright", "arrowdown", "degree", "plusminus", "second", "greaterequal", "multiply", "proportional", "partialdiff", "bullet", "divide", "notequal", "equivalence", "approxequal", "ellipsis", "arrowvertex", "arrowhorizex", "carriagereturn", "aleph", "Ifraktur", "Rfraktur", "weierstrass", "circlemultiply", "circleplus", "emptyset", "intersection", "union", "propersuperset", "reflexsuperset", "notsubset", "propersubset", "reflexsubset", "element", "notelement", "angle", "gradient", "registerserif", "copyrightserif", "trademarkserif", "product", "radical", "dotmath", "logicalnot", "logicaland", "logicalor", "arrowdblboth", "arrowdblleft", "arrowdblup", "arrowdblright", "arrowdbldown", "lozenge", "angleleft", "registersans", "copyrightsans", "trademarksans", "summation", "parenlefttp", "parenleftex", "parenleftbt", "bracketlefttp", "bracketleftex", "bracketleftbt", "bracelefttp", "braceleftmid", "braceleftbt", "braceex", "", "angleright", "integral", "integraltp", "integralex", "integralbt", "parenrighttp", "parenrightex", "parenrightbt", "bracketrighttp", "bracketrightex", "bracketrightbt", "bracerighttp", "bracerightmid", "bracerightbt", ""];
[14657] Fix | Delete
const ZapfDingbatsEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "a1", "a2", "a202", "a3", "a4", "a5", "a119", "a118", "a117", "a11", "a12", "a13", "a14", "a15", "a16", "a105", "a17", "a18", "a19", "a20", "a21", "a22", "a23", "a24", "a25", "a26", "a27", "a28", "a6", "a7", "a8", "a9", "a10", "a29", "a30", "a31", "a32", "a33", "a34", "a35", "a36", "a37", "a38", "a39", "a40", "a41", "a42", "a43", "a44", "a45", "a46", "a47", "a48", "a49", "a50", "a51", "a52", "a53", "a54", "a55", "a56", "a57", "a58", "a59", "a60", "a61", "a62", "a63", "a64", "a65", "a66", "a67", "a68", "a69", "a70", "a71", "a72", "a73", "a74", "a203", "a75", "a204", "a76", "a77", "a78", "a79", "a81", "a82", "a83", "a84", "a97", "a98", "a99", "a100", "", "a89", "a90", "a93", "a94", "a91", "a92", "a205", "a85", "a206", "a86", "a87", "a88", "a95", "a96", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "a101", "a102", "a103", "a104", "a106", "a107", "a108", "a112", "a111", "a110", "a109", "a120", "a121", "a122", "a123", "a124", "a125", "a126", "a127", "a128", "a129", "a130", "a131", "a132", "a133", "a134", "a135", "a136", "a137", "a138", "a139", "a140", "a141", "a142", "a143", "a144", "a145", "a146", "a147", "a148", "a149", "a150", "a151", "a152", "a153", "a154", "a155", "a156", "a157", "a158", "a159", "a160", "a161", "a163", "a164", "a196", "a165", "a192", "a166", "a167", "a168", "a169", "a170", "a171", "a172", "a173", "a162", "a174", "a175", "a176", "a177", "a178", "a179", "a193", "a180", "a199", "a181", "a200", "a182", "", "a201", "a183", "a184", "a197", "a185", "a194", "a198", "a186", "a195", "a187", "a188", "a189", "a190", "a191", ""];
[14658] Fix | Delete
function getEncoding(encodingName) {
[14659] Fix | Delete
switch (encodingName) {
[14660] Fix | Delete
case "WinAnsiEncoding":
[14661] Fix | Delete
return WinAnsiEncoding;
[14662] Fix | Delete
case "StandardEncoding":
[14663] Fix | Delete
return StandardEncoding;
[14664] Fix | Delete
case "MacRomanEncoding":
[14665] Fix | Delete
return MacRomanEncoding;
[14666] Fix | Delete
case "SymbolSetEncoding":
[14667] Fix | Delete
return SymbolSetEncoding;
[14668] Fix | Delete
case "ZapfDingbatsEncoding":
[14669] Fix | Delete
return ZapfDingbatsEncoding;
[14670] Fix | Delete
case "ExpertEncoding":
[14671] Fix | Delete
return ExpertEncoding;
[14672] Fix | Delete
case "MacExpertEncoding":
[14673] Fix | Delete
return MacExpertEncoding;
[14674] Fix | Delete
default:
[14675] Fix | Delete
return null;
[14676] Fix | Delete
}
[14677] Fix | Delete
}
[14678] Fix | Delete
[14679] Fix | Delete
;// CONCATENATED MODULE: ./src/core/cff_parser.js
[14680] Fix | Delete
[14681] Fix | Delete
[14682] Fix | Delete
[14683] Fix | Delete
[14684] Fix | Delete
[14685] Fix | Delete
[14686] Fix | Delete
[14687] Fix | Delete
[14688] Fix | Delete
[14689] Fix | Delete
[14690] Fix | Delete
const MAX_SUBR_NESTING = 10;
[14691] Fix | Delete
const CFFStandardStrings = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "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", "quoteleft", "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", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall", "001.000", "001.001", "001.002", "001.003", "Black", "Bold", "Book", "Light", "Medium", "Regular", "Roman", "Semibold"];
[14692] Fix | Delete
const NUM_STANDARD_CFF_STRINGS = 391;
[14693] Fix | Delete
const CharstringValidationData = [null, {
[14694] Fix | Delete
id: "hstem",
[14695] Fix | Delete
min: 2,
[14696] Fix | Delete
stackClearing: true,
[14697] Fix | Delete
stem: true
[14698] Fix | Delete
}, null, {
[14699] Fix | Delete
id: "vstem",
[14700] Fix | Delete
min: 2,
[14701] Fix | Delete
stackClearing: true,
[14702] Fix | Delete
stem: true
[14703] Fix | Delete
}, {
[14704] Fix | Delete
id: "vmoveto",
[14705] Fix | Delete
min: 1,
[14706] Fix | Delete
stackClearing: true
[14707] Fix | Delete
}, {
[14708] Fix | Delete
id: "rlineto",
[14709] Fix | Delete
min: 2,
[14710] Fix | Delete
resetStack: true
[14711] Fix | Delete
}, {
[14712] Fix | Delete
id: "hlineto",
[14713] Fix | Delete
min: 1,
[14714] Fix | Delete
resetStack: true
[14715] Fix | Delete
}, {
[14716] Fix | Delete
id: "vlineto",
[14717] Fix | Delete
min: 1,
[14718] Fix | Delete
resetStack: true
[14719] Fix | Delete
}, {
[14720] Fix | Delete
id: "rrcurveto",
[14721] Fix | Delete
min: 6,
[14722] Fix | Delete
resetStack: true
[14723] Fix | Delete
}, null, {
[14724] Fix | Delete
id: "callsubr",
[14725] Fix | Delete
min: 1,
[14726] Fix | Delete
undefStack: true
[14727] Fix | Delete
}, {
[14728] Fix | Delete
id: "return",
[14729] Fix | Delete
min: 0,
[14730] Fix | Delete
undefStack: true
[14731] Fix | Delete
}, null, null, {
[14732] Fix | Delete
id: "endchar",
[14733] Fix | Delete
min: 0,
[14734] Fix | Delete
stackClearing: true
[14735] Fix | Delete
}, null, null, null, {
[14736] Fix | Delete
id: "hstemhm",
[14737] Fix | Delete
min: 2,
[14738] Fix | Delete
stackClearing: true,
[14739] Fix | Delete
stem: true
[14740] Fix | Delete
}, {
[14741] Fix | Delete
id: "hintmask",
[14742] Fix | Delete
min: 0,
[14743] Fix | Delete
stackClearing: true
[14744] Fix | Delete
}, {
[14745] Fix | Delete
id: "cntrmask",
[14746] Fix | Delete
min: 0,
[14747] Fix | Delete
stackClearing: true
[14748] Fix | Delete
}, {
[14749] Fix | Delete
id: "rmoveto",
[14750] Fix | Delete
min: 2,
[14751] Fix | Delete
stackClearing: true
[14752] Fix | Delete
}, {
[14753] Fix | Delete
id: "hmoveto",
[14754] Fix | Delete
min: 1,
[14755] Fix | Delete
stackClearing: true
[14756] Fix | Delete
}, {
[14757] Fix | Delete
id: "vstemhm",
[14758] Fix | Delete
min: 2,
[14759] Fix | Delete
stackClearing: true,
[14760] Fix | Delete
stem: true
[14761] Fix | Delete
}, {
[14762] Fix | Delete
id: "rcurveline",
[14763] Fix | Delete
min: 8,
[14764] Fix | Delete
resetStack: true
[14765] Fix | Delete
}, {
[14766] Fix | Delete
id: "rlinecurve",
[14767] Fix | Delete
min: 8,
[14768] Fix | Delete
resetStack: true
[14769] Fix | Delete
}, {
[14770] Fix | Delete
id: "vvcurveto",
[14771] Fix | Delete
min: 4,
[14772] Fix | Delete
resetStack: true
[14773] Fix | Delete
}, {
[14774] Fix | Delete
id: "hhcurveto",
[14775] Fix | Delete
min: 4,
[14776] Fix | Delete
resetStack: true
[14777] Fix | Delete
}, null, {
[14778] Fix | Delete
id: "callgsubr",
[14779] Fix | Delete
min: 1,
[14780] Fix | Delete
undefStack: true
[14781] Fix | Delete
}, {
[14782] Fix | Delete
id: "vhcurveto",
[14783] Fix | Delete
min: 4,
[14784] Fix | Delete
resetStack: true
[14785] Fix | Delete
}, {
[14786] Fix | Delete
id: "hvcurveto",
[14787] Fix | Delete
min: 4,
[14788] Fix | Delete
resetStack: true
[14789] Fix | Delete
}];
[14790] Fix | Delete
const CharstringValidationData12 = [null, null, null, {
[14791] Fix | Delete
id: "and",
[14792] Fix | Delete
min: 2,
[14793] Fix | Delete
stackDelta: -1
[14794] Fix | Delete
}, {
[14795] Fix | Delete
id: "or",
[14796] Fix | Delete
min: 2,
[14797] Fix | Delete
stackDelta: -1
[14798] Fix | Delete
}, {
[14799] Fix | Delete
id: "not",
[14800] Fix | Delete
min: 1,
[14801] Fix | Delete
stackDelta: 0
[14802] Fix | Delete
}, null, null, null, {
[14803] Fix | Delete
id: "abs",
[14804] Fix | Delete
min: 1,
[14805] Fix | Delete
stackDelta: 0
[14806] Fix | Delete
}, {
[14807] Fix | Delete
id: "add",
[14808] Fix | Delete
min: 2,
[14809] Fix | Delete
stackDelta: -1,
[14810] Fix | Delete
stackFn(stack, index) {
[14811] Fix | Delete
stack[index - 2] = stack[index - 2] + stack[index - 1];
[14812] Fix | Delete
}
[14813] Fix | Delete
}, {
[14814] Fix | Delete
id: "sub",
[14815] Fix | Delete
min: 2,
[14816] Fix | Delete
stackDelta: -1,
[14817] Fix | Delete
stackFn(stack, index) {
[14818] Fix | Delete
stack[index - 2] = stack[index - 2] - stack[index - 1];
[14819] Fix | Delete
}
[14820] Fix | Delete
}, {
[14821] Fix | Delete
id: "div",
[14822] Fix | Delete
min: 2,
[14823] Fix | Delete
stackDelta: -1,
[14824] Fix | Delete
stackFn(stack, index) {
[14825] Fix | Delete
stack[index - 2] = stack[index - 2] / stack[index - 1];
[14826] Fix | Delete
}
[14827] Fix | Delete
}, null, {
[14828] Fix | Delete
id: "neg",
[14829] Fix | Delete
min: 1,
[14830] Fix | Delete
stackDelta: 0,
[14831] Fix | Delete
stackFn(stack, index) {
[14832] Fix | Delete
stack[index - 1] = -stack[index - 1];
[14833] Fix | Delete
}
[14834] Fix | Delete
}, {
[14835] Fix | Delete
id: "eq",
[14836] Fix | Delete
min: 2,
[14837] Fix | Delete
stackDelta: -1
[14838] Fix | Delete
}, null, null, {
[14839] Fix | Delete
id: "drop",
[14840] Fix | Delete
min: 1,
[14841] Fix | Delete
stackDelta: -1
[14842] Fix | Delete
}, null, {
[14843] Fix | Delete
id: "put",
[14844] Fix | Delete
min: 2,
[14845] Fix | Delete
stackDelta: -2
[14846] Fix | Delete
}, {
[14847] Fix | Delete
id: "get",
[14848] Fix | Delete
min: 1,
[14849] Fix | Delete
stackDelta: 0
[14850] Fix | Delete
}, {
[14851] Fix | Delete
id: "ifelse",
[14852] Fix | Delete
min: 4,
[14853] Fix | Delete
stackDelta: -3
[14854] Fix | Delete
}, {
[14855] Fix | Delete
id: "random",
[14856] Fix | Delete
min: 0,
[14857] Fix | Delete
stackDelta: 1
[14858] Fix | Delete
}, {
[14859] Fix | Delete
id: "mul",
[14860] Fix | Delete
min: 2,
[14861] Fix | Delete
stackDelta: -1,
[14862] Fix | Delete
stackFn(stack, index) {
[14863] Fix | Delete
stack[index - 2] = stack[index - 2] * stack[index - 1];
[14864] Fix | Delete
}
[14865] Fix | Delete
}, null, {
[14866] Fix | Delete
id: "sqrt",
[14867] Fix | Delete
min: 1,
[14868] Fix | Delete
stackDelta: 0
[14869] Fix | Delete
}, {
[14870] Fix | Delete
id: "dup",
[14871] Fix | Delete
min: 1,
[14872] Fix | Delete
stackDelta: 1
[14873] Fix | Delete
}, {
[14874] Fix | Delete
id: "exch",
[14875] Fix | Delete
min: 2,
[14876] Fix | Delete
stackDelta: 0
[14877] Fix | Delete
}, {
[14878] Fix | Delete
id: "index",
[14879] Fix | Delete
min: 2,
[14880] Fix | Delete
stackDelta: 0
[14881] Fix | Delete
}, {
[14882] Fix | Delete
id: "roll",
[14883] Fix | Delete
min: 3,
[14884] Fix | Delete
stackDelta: -2
[14885] Fix | Delete
}, null, null, null, {
[14886] Fix | Delete
id: "hflex",
[14887] Fix | Delete
min: 7,
[14888] Fix | Delete
resetStack: true
[14889] Fix | Delete
}, {
[14890] Fix | Delete
id: "flex",
[14891] Fix | Delete
min: 13,
[14892] Fix | Delete
resetStack: true
[14893] Fix | Delete
}, {
[14894] Fix | Delete
id: "hflex1",
[14895] Fix | Delete
min: 9,
[14896] Fix | Delete
resetStack: true
[14897] Fix | Delete
}, {
[14898] Fix | Delete
id: "flex1",
[14899] Fix | Delete
min: 11,
[14900] Fix | Delete
resetStack: true
[14901] Fix | Delete
}];
[14902] Fix | Delete
class CFFParser {
[14903] Fix | Delete
constructor(file, properties, seacAnalysisEnabled) {
[14904] Fix | Delete
this.bytes = file.getBytes();
[14905] Fix | Delete
this.properties = properties;
[14906] Fix | Delete
this.seacAnalysisEnabled = !!seacAnalysisEnabled;
[14907] Fix | Delete
}
[14908] Fix | Delete
parse() {
[14909] Fix | Delete
const properties = this.properties;
[14910] Fix | Delete
const cff = new CFF();
[14911] Fix | Delete
this.cff = cff;
[14912] Fix | Delete
const header = this.parseHeader();
[14913] Fix | Delete
const nameIndex = this.parseIndex(header.endPos);
[14914] Fix | Delete
const topDictIndex = this.parseIndex(nameIndex.endPos);
[14915] Fix | Delete
const stringIndex = this.parseIndex(topDictIndex.endPos);
[14916] Fix | Delete
const globalSubrIndex = this.parseIndex(stringIndex.endPos);
[14917] Fix | Delete
const topDictParsed = this.parseDict(topDictIndex.obj.get(0));
[14918] Fix | Delete
const topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
[14919] Fix | Delete
cff.header = header.obj;
[14920] Fix | Delete
cff.names = this.parseNameIndex(nameIndex.obj);
[14921] Fix | Delete
cff.strings = this.parseStringIndex(stringIndex.obj);
[14922] Fix | Delete
cff.topDict = topDict;
[14923] Fix | Delete
cff.globalSubrIndex = globalSubrIndex.obj;
[14924] Fix | Delete
this.parsePrivateDict(cff.topDict);
[14925] Fix | Delete
cff.isCIDFont = topDict.hasName("ROS");
[14926] Fix | Delete
const charStringOffset = topDict.getByName("CharStrings");
[14927] Fix | Delete
const charStringIndex = this.parseIndex(charStringOffset).obj;
[14928] Fix | Delete
const fontMatrix = topDict.getByName("FontMatrix");
[14929] Fix | Delete
if (fontMatrix) {
[14930] Fix | Delete
properties.fontMatrix = fontMatrix;
[14931] Fix | Delete
}
[14932] Fix | Delete
const fontBBox = topDict.getByName("FontBBox");
[14933] Fix | Delete
if (fontBBox) {
[14934] Fix | Delete
properties.ascent = Math.max(fontBBox[3], fontBBox[1]);
[14935] Fix | Delete
properties.descent = Math.min(fontBBox[1], fontBBox[3]);
[14936] Fix | Delete
properties.ascentScaled = true;
[14937] Fix | Delete
}
[14938] Fix | Delete
let charset, encoding;
[14939] Fix | Delete
if (cff.isCIDFont) {
[14940] Fix | Delete
const fdArrayIndex = this.parseIndex(topDict.getByName("FDArray")).obj;
[14941] Fix | Delete
for (let i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
[14942] Fix | Delete
const dictRaw = fdArrayIndex.get(i);
[14943] Fix | Delete
const fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw), cff.strings);
[14944] Fix | Delete
this.parsePrivateDict(fontDict);
[14945] Fix | Delete
cff.fdArray.push(fontDict);
[14946] Fix | Delete
}
[14947] Fix | Delete
encoding = null;
[14948] Fix | Delete
charset = this.parseCharsets(topDict.getByName("charset"), charStringIndex.count, cff.strings, true);
[14949] Fix | Delete
cff.fdSelect = this.parseFDSelect(topDict.getByName("FDSelect"), charStringIndex.count);
[14950] Fix | Delete
} else {
[14951] Fix | Delete
charset = this.parseCharsets(topDict.getByName("charset"), charStringIndex.count, cff.strings, false);
[14952] Fix | Delete
encoding = this.parseEncoding(topDict.getByName("Encoding"), properties, cff.strings, charset.charset);
[14953] Fix | Delete
}
[14954] Fix | Delete
cff.charset = charset;
[14955] Fix | Delete
cff.encoding = encoding;
[14956] Fix | Delete
const charStringsAndSeacs = this.parseCharStrings({
[14957] Fix | Delete
charStrings: charStringIndex,
[14958] Fix | Delete
localSubrIndex: topDict.privateDict.subrsIndex,
[14959] Fix | Delete
globalSubrIndex: globalSubrIndex.obj,
[14960] Fix | Delete
fdSelect: cff.fdSelect,
[14961] Fix | Delete
fdArray: cff.fdArray,
[14962] Fix | Delete
privateDict: topDict.privateDict
[14963] Fix | Delete
});
[14964] Fix | Delete
cff.charStrings = charStringsAndSeacs.charStrings;
[14965] Fix | Delete
cff.seacs = charStringsAndSeacs.seacs;
[14966] Fix | Delete
cff.widths = charStringsAndSeacs.widths;
[14967] Fix | Delete
return cff;
[14968] Fix | Delete
}
[14969] Fix | Delete
parseHeader() {
[14970] Fix | Delete
let bytes = this.bytes;
[14971] Fix | Delete
const bytesLength = bytes.length;
[14972] Fix | Delete
let offset = 0;
[14973] Fix | Delete
while (offset < bytesLength && bytes[offset] !== 1) {
[14974] Fix | Delete
++offset;
[14975] Fix | Delete
}
[14976] Fix | Delete
if (offset >= bytesLength) {
[14977] Fix | Delete
throw new FormatError("Invalid CFF header");
[14978] Fix | Delete
}
[14979] Fix | Delete
if (offset !== 0) {
[14980] Fix | Delete
info("cff data is shifted");
[14981] Fix | Delete
bytes = bytes.subarray(offset);
[14982] Fix | Delete
this.bytes = bytes;
[14983] Fix | Delete
}
[14984] Fix | Delete
const major = bytes[0];
[14985] Fix | Delete
const minor = bytes[1];
[14986] Fix | Delete
const hdrSize = bytes[2];
[14987] Fix | Delete
const offSize = bytes[3];
[14988] Fix | Delete
const header = new CFFHeader(major, minor, hdrSize, offSize);
[14989] Fix | Delete
return {
[14990] Fix | Delete
obj: header,
[14991] Fix | Delete
endPos: hdrSize
[14992] Fix | Delete
};
[14993] Fix | Delete
}
[14994] Fix | Delete
parseDict(dict) {
[14995] Fix | Delete
let pos = 0;
[14996] Fix | Delete
function parseOperand() {
[14997] Fix | Delete
let value = dict[pos++];
[14998] Fix | Delete
if (value === 30) {
[14999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function