Browse Source

Fix lint errors and add metrics.js and charsets.js to the default set of pdf files in the Makefile

Vivien Nicolas 14 years ago
parent
commit
f3c20150bd
  1. 2
      Makefile
  2. 182
      charsets.js
  3. 2
      fonts.js

2
Makefile

@ -12,6 +12,8 @@ PDF_JS_FILES = \
pdf.js \ pdf.js \
crypto.js \ crypto.js \
fonts.js \ fonts.js \
metrics.js \
charsets.js \
glyphlist.js \ glyphlist.js \
$(NULL) $(NULL)

182
charsets.js

@ -1,101 +1,101 @@
var ISOAdobeCharset = [ var ISOAdobeCharset = [
".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
"percent", "ampersand", "quoteright", "parenleft", "parenright", 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
"asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
"one", "two", "three", "four", "five", "six", "seven", "eight", 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
"nine", "colon", "semicolon", "less", "equal", "greater", "question", 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
"at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", '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", 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
"bracketleft", "backslash", "bracketright", "asciicircum", "underscore", 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
"quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", '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", 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
"braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
"sterling", "fraction", "yen", "florin", "section", "currency", 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
"quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
"guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
"periodcentered", "paragraph", "bullet", "quotesinglbase", 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
"quotedblbase", "quotedblright", "guillemotright", "ellipsis", 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
"perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
"macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
"hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
"Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
"oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
"trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
"divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
"registered", "minus", "eth", "multiply", "threesuperior", "copyright", 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
"Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
"Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
"Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
"Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
"Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
"acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
"eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
"idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
"ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
"ugrave", "yacute", "ydieresis", "zcaron" 'ugrave', 'yacute', 'ydieresis', 'zcaron'
]; ];
var ExpertCharset = [ var ExpertCharset = [
".notdef", "space", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
"dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
"parenrightsuperior", "twodotenleader", "onedotenleader", "comma", 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
"hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
"twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
"sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
"colon", "semicolon", "commasuperior", "threequartersemdash", 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
"periodsuperior", "questionsmall", "asuperior", "bsuperior", 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
"centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
"msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
"tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
"parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
"Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
"Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
"Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
"Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
"onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
"Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
"Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
"figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
"Cedillasmall", "onequarter", "onehalf", "threequarters", 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
"questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
"seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
"twosuperior", "threesuperior", "foursuperior", "fivesuperior", 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
"sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
"zeroinferior", "oneinferior", "twoinferior", "threeinferior", 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
"fourinferior", "fiveinferior", "sixinferior", "seveninferior", 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
"eightinferior", "nineinferior", "centinferior", "dollarinferior", 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
"periodinferior", "commainferior", "Agravesmall", "Aacutesmall", 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
"Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
"AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
"Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
"Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
"Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
"Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
"Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
"Ydieresissmall" 'Ydieresissmall'
]; ];
var ExpertSubsetCharset = [ var ExpertSubsetCharset = [
".notdef", "space", "dollaroldstyle", "dollarsuperior", '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
"parenleftsuperior", "parenrightsuperior", "twodotenleader", 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
"onedotenleader", "comma", "hyphen", "period", "fraction", 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
"zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
"fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
"eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
"threequartersemdash", "periodsuperior", "asuperior", "bsuperior", 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
"centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
"msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
"tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
"parenrightinferior", "hyphensuperior", "colonmonetary", "onefitted", 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
"rupiah", "centoldstyle", "figuredash", "hypheninferior", "onequarter", 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
"onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
"seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
"twosuperior", "threesuperior", "foursuperior", "fivesuperior", 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
"sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
"zeroinferior", "oneinferior", "twoinferior", "threeinferior", 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
"fourinferior", "fiveinferior", "sixinferior", "seveninferior", 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
"eightinferior", "nineinferior", "centinferior", "dollarinferior", 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
"periodinferior", "commainferior" 'periodinferior', 'commainferior'
]; ];

2
fonts.js

@ -2818,7 +2818,7 @@ var Type2CFF = (function() {
start: start, start: start,
end: end, end: end,
data: bytes.subarray(start, end) data: bytes.subarray(start, end)
} };
}, },
length: count, length: count,
endPos: end endPos: end

Loading…
Cancel
Save