github.com/andybalholm/giopdf@v0.0.0-20220317170119-aad9a095ad48/cff/encodings.go (about)

     1  package cff
     2  
     3  import "github.com/benoitkugler/textlayout/fonts/simpleencodings"
     4  
     5  // the Standard encoding the same as in PDF
     6  // but expertEncoding is not the same as MacExpert
     7  var expertEncoding = simpleencodings.Encoding{
     8  	32:  "space",
     9  	33:  "exclamsmall",
    10  	34:  "Hungarumlautsmall",
    11  	36:  "dollaroldstyle",
    12  	37:  "dollarsuperior",
    13  	38:  "ampersandsmall",
    14  	39:  "Acutesmall",
    15  	40:  "parenleftsuperior",
    16  	41:  "parenrightsuperior",
    17  	42:  "twodotenleader",
    18  	43:  "onedotenleader",
    19  	44:  "comma",
    20  	45:  "hyphen",
    21  	46:  "period",
    22  	47:  "fraction",
    23  	48:  "zerooldstyle",
    24  	49:  "oneoldstyle",
    25  	50:  "twooldstyle",
    26  	51:  "threeoldstyle",
    27  	52:  "fouroldstyle",
    28  	53:  "fiveoldstyle",
    29  	54:  "sixoldstyle",
    30  	55:  "sevenoldstyle",
    31  	56:  "eightoldstyle",
    32  	57:  "nineoldstyle",
    33  	58:  "colon",
    34  	59:  "semicolon",
    35  	60:  "commasuperior",
    36  	61:  "threequartersemdash",
    37  	62:  "periodsuperior",
    38  	63:  "questionsmall",
    39  	65:  "asuperior",
    40  	66:  "bsuperior",
    41  	67:  "centsuperior",
    42  	68:  "dsuperior",
    43  	69:  "esuperior",
    44  	73:  "isuperior",
    45  	76:  "lsuperior",
    46  	77:  "msuperior",
    47  	78:  "nsuperior",
    48  	79:  "osuperior",
    49  	82:  "rsuperior",
    50  	83:  "ssuperior",
    51  	84:  "tsuperior",
    52  	86:  "ff",
    53  	87:  "fi",
    54  	88:  "fl",
    55  	89:  "ffi",
    56  	90:  "ffl",
    57  	91:  "parenleftinferior",
    58  	93:  "parenrightinferior",
    59  	94:  "Circumflexsmall",
    60  	95:  "hyphensuperior",
    61  	96:  "Gravesmall",
    62  	97:  "Asmall",
    63  	98:  "Bsmall",
    64  	99:  "Csmall",
    65  	100: "Dsmall",
    66  	101: "Esmall",
    67  	102: "Fsmall",
    68  	103: "Gsmall",
    69  	104: "Hsmall",
    70  	105: "Ismall",
    71  	106: "Jsmall",
    72  	107: "Ksmall",
    73  	108: "Lsmall",
    74  	109: "Msmall",
    75  	110: "Nsmall",
    76  	111: "Osmall",
    77  	112: "Psmall",
    78  	113: "Qsmall",
    79  	114: "Rsmall",
    80  	115: "Ssmall",
    81  	116: "Tsmall",
    82  	117: "Usmall",
    83  	118: "Vsmall",
    84  	119: "Wsmall",
    85  	120: "Xsmall",
    86  	121: "Ysmall",
    87  	122: "Zsmall",
    88  	123: "colonmonetary",
    89  	124: "onefitted",
    90  	125: "rupiah",
    91  	126: "Tildesmall",
    92  	161: "exclamdownsmall",
    93  	162: "centoldstyle",
    94  	163: "Lslashsmall",
    95  	166: "Scaronsmall",
    96  	167: "Zcaronsmall",
    97  	168: "Dieresissmall",
    98  	169: "Brevesmall",
    99  	170: "Caronsmall",
   100  	172: "Dotaccentsmall",
   101  	175: "Macronsmall",
   102  	178: "figuredash",
   103  	179: "hypheninferior",
   104  	182: "Ogoneksmall",
   105  	183: "Ringsmall",
   106  	184: "Cedillasmall",
   107  	188: "onequarter",
   108  	189: "onehalf",
   109  	190: "threequarters",
   110  	191: "questiondownsmall",
   111  	192: "oneeighth",
   112  	193: "threeeighths",
   113  	194: "fiveeighths",
   114  	195: "seveneighths",
   115  	196: "onethird",
   116  	197: "twothirds",
   117  	200: "zerosuperior",
   118  	201: "onesuperior",
   119  	202: "twosuperior",
   120  	203: "threesuperior",
   121  	204: "foursuperior",
   122  	205: "fivesuperior",
   123  	206: "sixsuperior",
   124  	207: "sevensuperior",
   125  	208: "eightsuperior",
   126  	209: "ninesuperior",
   127  	210: "zeroinferior",
   128  	211: "oneinferior",
   129  	212: "twoinferior",
   130  	213: "threeinferior",
   131  	214: "fourinferior",
   132  	215: "fiveinferior",
   133  	216: "sixinferior",
   134  	217: "seveninferior",
   135  	218: "eightinferior",
   136  	219: "nineinferior",
   137  	220: "centinferior",
   138  	221: "dollarinferior",
   139  	222: "periodinferior",
   140  	223: "commainferior",
   141  	224: "Agravesmall",
   142  	225: "Aacutesmall",
   143  	226: "Acircumflexsmall",
   144  	227: "Atildesmall",
   145  	228: "Adieresissmall",
   146  	229: "Aringsmall",
   147  	230: "AEsmall",
   148  	231: "Ccedillasmall",
   149  	232: "Egravesmall",
   150  	233: "Eacutesmall",
   151  	234: "Ecircumflexsmall",
   152  	235: "Edieresissmall",
   153  	236: "Igravesmall",
   154  	237: "Iacutesmall",
   155  	238: "Icircumflexsmall",
   156  	239: "Idieresissmall",
   157  	240: "Ethsmall",
   158  	241: "Ntildesmall",
   159  	242: "Ogravesmall",
   160  	243: "Oacutesmall",
   161  	244: "Ocircumflexsmall",
   162  	245: "Otildesmall",
   163  	246: "Odieresissmall",
   164  	247: "OEsmall",
   165  	248: "Oslashsmall",
   166  	249: "Ugravesmall",
   167  	250: "Uacutesmall",
   168  	251: "Ucircumflexsmall",
   169  	252: "Udieresissmall",
   170  	253: "Yacutesmall",
   171  	254: "Thornsmall",
   172  	255: "Ydieresissmall",
   173  }
   174  
   175  var stdStrings = [391]string{
   176  	".notdef",
   177  	"space",
   178  	"exclam",
   179  	"quotedbl",
   180  	"numbersign",
   181  	"dollar",
   182  	"percent",
   183  	"ampersand",
   184  	"quoteright",
   185  	"parenleft",
   186  	"parenright",
   187  	"asterisk",
   188  	"plus",
   189  	"comma",
   190  	"hyphen",
   191  	"period",
   192  	"slash",
   193  	"zero",
   194  	"one",
   195  	"two",
   196  	"three",
   197  	"four",
   198  	"five",
   199  	"six",
   200  	"seven",
   201  	"eight",
   202  	"nine",
   203  	"colon",
   204  	"semicolon",
   205  	"less",
   206  	"equal",
   207  	"greater",
   208  	"question",
   209  	"at",
   210  	"A",
   211  	"B",
   212  	"C",
   213  	"D",
   214  	"E",
   215  	"F",
   216  	"G",
   217  	"H",
   218  	"I",
   219  	"J",
   220  	"K",
   221  	"L",
   222  	"M",
   223  	"N",
   224  	"O",
   225  	"P",
   226  	"Q",
   227  	"R",
   228  	"S",
   229  	"T",
   230  	"U",
   231  	"V",
   232  	"W",
   233  	"X",
   234  	"Y",
   235  	"Z",
   236  	"bracketleft",
   237  	"backslash",
   238  	"bracketright",
   239  	"asciicircum",
   240  	"underscore",
   241  	"quoteleft",
   242  	"a",
   243  	"b",
   244  	"c",
   245  	"d",
   246  	"e",
   247  	"f",
   248  	"g",
   249  	"h",
   250  	"i",
   251  	"j",
   252  	"k",
   253  	"l",
   254  	"m",
   255  	"n",
   256  	"o",
   257  	"p",
   258  	"q",
   259  	"r",
   260  	"s",
   261  	"t",
   262  	"u",
   263  	"v",
   264  	"w",
   265  	"x",
   266  	"y",
   267  	"z",
   268  	"braceleft",
   269  	"bar",
   270  	"braceright",
   271  	"asciitilde",
   272  	"exclamdown",
   273  	"cent",
   274  	"sterling",
   275  	"fraction",
   276  	"yen",
   277  	"florin",
   278  	"section",
   279  	"currency",
   280  	"quotesingle",
   281  	"quotedblleft",
   282  	"guillemotleft",
   283  	"guilsinglleft",
   284  	"guilsinglright",
   285  	"fi",
   286  	"fl",
   287  	"endash",
   288  	"dagger",
   289  	"daggerdbl",
   290  	"periodcentered",
   291  	"paragraph",
   292  	"bullet",
   293  	"quotesinglbase",
   294  	"quotedblbase",
   295  	"quotedblright",
   296  	"guillemotright",
   297  	"ellipsis",
   298  	"perthousand",
   299  	"questiondown",
   300  	"grave",
   301  	"acute",
   302  	"circumflex",
   303  	"tilde",
   304  	"macron",
   305  	"breve",
   306  	"dotaccent",
   307  	"dieresis",
   308  	"ring",
   309  	"cedilla",
   310  	"hungarumlaut",
   311  	"ogonek",
   312  	"caron",
   313  	"emdash",
   314  	"AE",
   315  	"ordfeminine",
   316  	"Lslash",
   317  	"Oslash",
   318  	"OE",
   319  	"ordmasculine",
   320  	"ae",
   321  	"dotlessi",
   322  	"lslash",
   323  	"oslash",
   324  	"oe",
   325  	"germandbls",
   326  	"onesuperior",
   327  	"logicalnot",
   328  	"mu",
   329  	"trademark",
   330  	"Eth",
   331  	"onehalf",
   332  	"plusminus",
   333  	"Thorn",
   334  	"onequarter",
   335  	"divide",
   336  	"brokenbar",
   337  	"degree",
   338  	"thorn",
   339  	"threequarters",
   340  	"twosuperior",
   341  	"registered",
   342  	"minus",
   343  	"eth",
   344  	"multiply",
   345  	"threesuperior",
   346  	"copyright",
   347  	"Aacute",
   348  	"Acircumflex",
   349  	"Adieresis",
   350  	"Agrave",
   351  	"Aring",
   352  	"Atilde",
   353  	"Ccedilla",
   354  	"Eacute",
   355  	"Ecircumflex",
   356  	"Edieresis",
   357  	"Egrave",
   358  	"Iacute",
   359  	"Icircumflex",
   360  	"Idieresis",
   361  	"Igrave",
   362  	"Ntilde",
   363  	"Oacute",
   364  	"Ocircumflex",
   365  	"Odieresis",
   366  	"Ograve",
   367  	"Otilde",
   368  	"Scaron",
   369  	"Uacute",
   370  	"Ucircumflex",
   371  	"Udieresis",
   372  	"Ugrave",
   373  	"Yacute",
   374  	"Ydieresis",
   375  	"Zcaron",
   376  	"aacute",
   377  	"acircumflex",
   378  	"adieresis",
   379  	"agrave",
   380  	"aring",
   381  	"atilde",
   382  	"ccedilla",
   383  	"eacute",
   384  	"ecircumflex",
   385  	"edieresis",
   386  	"egrave",
   387  	"iacute",
   388  	"icircumflex",
   389  	"idieresis",
   390  	"igrave",
   391  	"ntilde",
   392  	"oacute",
   393  	"ocircumflex",
   394  	"odieresis",
   395  	"ograve",
   396  	"otilde",
   397  	"scaron",
   398  	"uacute",
   399  	"ucircumflex",
   400  	"udieresis",
   401  	"ugrave",
   402  	"yacute",
   403  	"ydieresis",
   404  	"zcaron",
   405  	"exclamsmall",
   406  	"Hungarumlautsmall",
   407  	"dollaroldstyle",
   408  	"dollarsuperior",
   409  	"ampersandsmall",
   410  	"Acutesmall",
   411  	"parenleftsuperior",
   412  	"parenrightsuperior",
   413  	"twodotenleader",
   414  	"onedotenleader",
   415  	"zerooldstyle",
   416  	"oneoldstyle",
   417  	"twooldstyle",
   418  	"threeoldstyle",
   419  	"fouroldstyle",
   420  	"fiveoldstyle",
   421  	"sixoldstyle",
   422  	"sevenoldstyle",
   423  	"eightoldstyle",
   424  	"nineoldstyle",
   425  	"commasuperior",
   426  	"threequartersemdash",
   427  	"periodsuperior",
   428  	"questionsmall",
   429  	"asuperior",
   430  	"bsuperior",
   431  	"centsuperior",
   432  	"dsuperior",
   433  	"esuperior",
   434  	"isuperior",
   435  	"lsuperior",
   436  	"msuperior",
   437  	"nsuperior",
   438  	"osuperior",
   439  	"rsuperior",
   440  	"ssuperior",
   441  	"tsuperior",
   442  	"ff",
   443  	"ffi",
   444  	"ffl",
   445  	"parenleftinferior",
   446  	"parenrightinferior",
   447  	"Circumflexsmall",
   448  	"hyphensuperior",
   449  	"Gravesmall",
   450  	"Asmall",
   451  	"Bsmall",
   452  	"Csmall",
   453  	"Dsmall",
   454  	"Esmall",
   455  	"Fsmall",
   456  	"Gsmall",
   457  	"Hsmall",
   458  	"Ismall",
   459  	"Jsmall",
   460  	"Ksmall",
   461  	"Lsmall",
   462  	"Msmall",
   463  	"Nsmall",
   464  	"Osmall",
   465  	"Psmall",
   466  	"Qsmall",
   467  	"Rsmall",
   468  	"Ssmall",
   469  	"Tsmall",
   470  	"Usmall",
   471  	"Vsmall",
   472  	"Wsmall",
   473  	"Xsmall",
   474  	"Ysmall",
   475  	"Zsmall",
   476  	"colonmonetary",
   477  	"onefitted",
   478  	"rupiah",
   479  	"Tildesmall",
   480  	"exclamdownsmall",
   481  	"centoldstyle",
   482  	"Lslashsmall",
   483  	"Scaronsmall",
   484  	"Zcaronsmall",
   485  	"Dieresissmall",
   486  	"Brevesmall",
   487  	"Caronsmall",
   488  	"Dotaccentsmall",
   489  	"Macronsmall",
   490  	"figuredash",
   491  	"hypheninferior",
   492  	"Ogoneksmall",
   493  	"Ringsmall",
   494  	"Cedillasmall",
   495  	"questiondownsmall",
   496  	"oneeighth",
   497  	"threeeighths",
   498  	"fiveeighths",
   499  	"seveneighths",
   500  	"onethird",
   501  	"twothirds",
   502  	"zerosuperior",
   503  	"foursuperior",
   504  	"fivesuperior",
   505  	"sixsuperior",
   506  	"sevensuperior",
   507  	"eightsuperior",
   508  	"ninesuperior",
   509  	"zeroinferior",
   510  	"oneinferior",
   511  	"twoinferior",
   512  	"threeinferior",
   513  	"fourinferior",
   514  	"fiveinferior",
   515  	"sixinferior",
   516  	"seveninferior",
   517  	"eightinferior",
   518  	"nineinferior",
   519  	"centinferior",
   520  	"dollarinferior",
   521  	"periodinferior",
   522  	"commainferior",
   523  	"Agravesmall",
   524  	"Aacutesmall",
   525  	"Acircumflexsmall",
   526  	"Atildesmall",
   527  	"Adieresissmall",
   528  	"Aringsmall",
   529  	"AEsmall",
   530  	"Ccedillasmall",
   531  	"Egravesmall",
   532  	"Eacutesmall",
   533  	"Ecircumflexsmall",
   534  	"Edieresissmall",
   535  	"Igravesmall",
   536  	"Iacutesmall",
   537  	"Icircumflexsmall",
   538  	"Idieresissmall",
   539  	"Ethsmall",
   540  	"Ntildesmall",
   541  	"Ogravesmall",
   542  	"Oacutesmall",
   543  	"Ocircumflexsmall",
   544  	"Otildesmall",
   545  	"Odieresissmall",
   546  	"OEsmall",
   547  	"Oslashsmall",
   548  	"Ugravesmall",
   549  	"Uacutesmall",
   550  	"Ucircumflexsmall",
   551  	"Udieresissmall",
   552  	"Yacutesmall",
   553  	"Thornsmall",
   554  	"Ydieresissmall",
   555  	"001.000",
   556  	"001.001",
   557  	"001.002",
   558  	"001.003",
   559  	"Black",
   560  	"Bold",
   561  	"Book",
   562  	"Light",
   563  	"Medium",
   564  	"Regular",
   565  	"Roman",
   566  	"Semibold",
   567  }