• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1from __future__ import print_function, division, absolute_import
2from fontTools.misc.py23 import *
3
4#
5# 'post' table formats 1.0 and 2.0 rely on this list of "standard"
6# glyphs.
7#
8# My list is correct according to the Apple documentation for the 'post'
9# table: http://developer.apple.com/fonts/TTRefMan/RM06/Chap6post.html
10# (However, it seems that TTFdump (from MS) and FontLab disagree, at
11# least with respect to the last glyph, which they list as 'dslash'
12# instead of 'dcroat'.)
13#
14
15standardGlyphOrder = [
16	".notdef",              # 0
17	".null",                # 1
18	"nonmarkingreturn",     # 2
19	"space",                # 3
20	"exclam",               # 4
21	"quotedbl",             # 5
22	"numbersign",           # 6
23	"dollar",               # 7
24	"percent",              # 8
25	"ampersand",            # 9
26	"quotesingle",          # 10
27	"parenleft",            # 11
28	"parenright",           # 12
29	"asterisk",             # 13
30	"plus",                 # 14
31	"comma",                # 15
32	"hyphen",               # 16
33	"period",               # 17
34	"slash",                # 18
35	"zero",                 # 19
36	"one",                  # 20
37	"two",                  # 21
38	"three",                # 22
39	"four",                 # 23
40	"five",                 # 24
41	"six",                  # 25
42	"seven",                # 26
43	"eight",                # 27
44	"nine",                 # 28
45	"colon",                # 29
46	"semicolon",            # 30
47	"less",                 # 31
48	"equal",                # 32
49	"greater",              # 33
50	"question",             # 34
51	"at",                   # 35
52	"A",                    # 36
53	"B",                    # 37
54	"C",                    # 38
55	"D",                    # 39
56	"E",                    # 40
57	"F",                    # 41
58	"G",                    # 42
59	"H",                    # 43
60	"I",                    # 44
61	"J",                    # 45
62	"K",                    # 46
63	"L",                    # 47
64	"M",                    # 48
65	"N",                    # 49
66	"O",                    # 50
67	"P",                    # 51
68	"Q",                    # 52
69	"R",                    # 53
70	"S",                    # 54
71	"T",                    # 55
72	"U",                    # 56
73	"V",                    # 57
74	"W",                    # 58
75	"X",                    # 59
76	"Y",                    # 60
77	"Z",                    # 61
78	"bracketleft",          # 62
79	"backslash",            # 63
80	"bracketright",         # 64
81	"asciicircum",          # 65
82	"underscore",           # 66
83	"grave",                # 67
84	"a",                    # 68
85	"b",                    # 69
86	"c",                    # 70
87	"d",                    # 71
88	"e",                    # 72
89	"f",                    # 73
90	"g",                    # 74
91	"h",                    # 75
92	"i",                    # 76
93	"j",                    # 77
94	"k",                    # 78
95	"l",                    # 79
96	"m",                    # 80
97	"n",                    # 81
98	"o",                    # 82
99	"p",                    # 83
100	"q",                    # 84
101	"r",                    # 85
102	"s",                    # 86
103	"t",                    # 87
104	"u",                    # 88
105	"v",                    # 89
106	"w",                    # 90
107	"x",                    # 91
108	"y",                    # 92
109	"z",                    # 93
110	"braceleft",            # 94
111	"bar",                  # 95
112	"braceright",           # 96
113	"asciitilde",           # 97
114	"Adieresis",            # 98
115	"Aring",                # 99
116	"Ccedilla",             # 100
117	"Eacute",               # 101
118	"Ntilde",               # 102
119	"Odieresis",            # 103
120	"Udieresis",            # 104
121	"aacute",               # 105
122	"agrave",               # 106
123	"acircumflex",          # 107
124	"adieresis",            # 108
125	"atilde",               # 109
126	"aring",                # 110
127	"ccedilla",             # 111
128	"eacute",               # 112
129	"egrave",               # 113
130	"ecircumflex",          # 114
131	"edieresis",            # 115
132	"iacute",               # 116
133	"igrave",               # 117
134	"icircumflex",          # 118
135	"idieresis",            # 119
136	"ntilde",               # 120
137	"oacute",               # 121
138	"ograve",               # 122
139	"ocircumflex",          # 123
140	"odieresis",            # 124
141	"otilde",               # 125
142	"uacute",               # 126
143	"ugrave",               # 127
144	"ucircumflex",          # 128
145	"udieresis",            # 129
146	"dagger",               # 130
147	"degree",               # 131
148	"cent",                 # 132
149	"sterling",             # 133
150	"section",              # 134
151	"bullet",               # 135
152	"paragraph",            # 136
153	"germandbls",           # 137
154	"registered",           # 138
155	"copyright",            # 139
156	"trademark",            # 140
157	"acute",                # 141
158	"dieresis",             # 142
159	"notequal",             # 143
160	"AE",                   # 144
161	"Oslash",               # 145
162	"infinity",             # 146
163	"plusminus",            # 147
164	"lessequal",            # 148
165	"greaterequal",         # 149
166	"yen",                  # 150
167	"mu",                   # 151
168	"partialdiff",          # 152
169	"summation",            # 153
170	"product",              # 154
171	"pi",                   # 155
172	"integral",             # 156
173	"ordfeminine",          # 157
174	"ordmasculine",         # 158
175	"Omega",                # 159
176	"ae",                   # 160
177	"oslash",               # 161
178	"questiondown",         # 162
179	"exclamdown",           # 163
180	"logicalnot",           # 164
181	"radical",              # 165
182	"florin",               # 166
183	"approxequal",          # 167
184	"Delta",                # 168
185	"guillemotleft",        # 169
186	"guillemotright",       # 170
187	"ellipsis",             # 171
188	"nonbreakingspace",     # 172
189	"Agrave",               # 173
190	"Atilde",               # 174
191	"Otilde",               # 175
192	"OE",                   # 176
193	"oe",                   # 177
194	"endash",               # 178
195	"emdash",               # 179
196	"quotedblleft",         # 180
197	"quotedblright",        # 181
198	"quoteleft",            # 182
199	"quoteright",           # 183
200	"divide",               # 184
201	"lozenge",              # 185
202	"ydieresis",            # 186
203	"Ydieresis",            # 187
204	"fraction",             # 188
205	"currency",             # 189
206	"guilsinglleft",        # 190
207	"guilsinglright",       # 191
208	"fi",                   # 192
209	"fl",                   # 193
210	"daggerdbl",            # 194
211	"periodcentered",       # 195
212	"quotesinglbase",       # 196
213	"quotedblbase",         # 197
214	"perthousand",          # 198
215	"Acircumflex",          # 199
216	"Ecircumflex",          # 200
217	"Aacute",               # 201
218	"Edieresis",            # 202
219	"Egrave",               # 203
220	"Iacute",               # 204
221	"Icircumflex",          # 205
222	"Idieresis",            # 206
223	"Igrave",               # 207
224	"Oacute",               # 208
225	"Ocircumflex",          # 209
226	"apple",                # 210
227	"Ograve",               # 211
228	"Uacute",               # 212
229	"Ucircumflex",          # 213
230	"Ugrave",               # 214
231	"dotlessi",             # 215
232	"circumflex",           # 216
233	"tilde",                # 217
234	"macron",               # 218
235	"breve",                # 219
236	"dotaccent",            # 220
237	"ring",                 # 221
238	"cedilla",              # 222
239	"hungarumlaut",         # 223
240	"ogonek",               # 224
241	"caron",                # 225
242	"Lslash",               # 226
243	"lslash",               # 227
244	"Scaron",               # 228
245	"scaron",               # 229
246	"Zcaron",               # 230
247	"zcaron",               # 231
248	"brokenbar",            # 232
249	"Eth",                  # 233
250	"eth",                  # 234
251	"Yacute",               # 235
252	"yacute",               # 236
253	"Thorn",                # 237
254	"thorn",                # 238
255	"minus",                # 239
256	"multiply",             # 240
257	"onesuperior",          # 241
258	"twosuperior",          # 242
259	"threesuperior",        # 243
260	"onehalf",              # 244
261	"onequarter",           # 245
262	"threequarters",        # 246
263	"franc",                # 247
264	"Gbreve",               # 248
265	"gbreve",               # 249
266	"Idotaccent",           # 250
267	"Scedilla",             # 251
268	"scedilla",             # 252
269	"Cacute",               # 253
270	"cacute",               # 254
271	"Ccaron",               # 255
272	"ccaron",               # 256
273	"dcroat"                # 257
274]
275