66#define FEATREG_MAX_SETTING 12
85#define APPLE_RESERVED "Apple Reserved"
86#define APPLE_RESERVED_LENGTH 14
90 const char* feat_name;
92 char* setting_name[FEATREG_MAX_SETTING];
94 } GX_Feature_RegistryRec;
97#define EMPTYFEAT {0, 0, {NULL}}
100 static GX_Feature_RegistryRec featreg_table[] =
103 "All Typographic Features",
113 "Required Ligatures",
118 "Diphthong Ligatures",
120 "Squared Ligatures, Abbreviated",
124 "Cursive Connection",
128 "Partially Connected",
136 "Upper & Lower Case",
141 "Initial Caps & Small Caps",
145 "Vertical Substitution",
149 "Turns on the feature",
153 "Linguistic Rearrangement",
157 "Turns on the feature",
164 "Monospaced Numbers",
165 "Proportional Numbers",
176 "Word Initial Swashes",
177 "Word Final Swashes",
178 "Line Initial Swashes",
179 "Line Final Swashes",
189 "Decompose Diacritics",
197 "No Vertical Position",
208 "Vertical Fractions",
209 "Diagonal Fractions",
217 "Overlapping Characters",
221 "Turns on the feature",
225 "Typographic Extras",
228 "Hyphens to Em Dash",
229 "Hyphens to En Dash",
233 "Periods to Ellipsis",
237 "Mathematical Extras",
241 "Asterisk to Multiply",
243 "Inequality Ligatures",
255 "Decorative Borders",
256 "International Symbols",
261 "Character Alternatives",
296 "Traditional Characters",
297 "Simplified Characters",
298 "JIS 1978 Characters",
299 "JIS 1983 Characters",
300 "JIS 1990 Characters",
301 "Traditional Characters, Alternative Set 1",
302 "Traditional Characters, Alternative Set 2",
303 "Traditional Characters, Alternative Set 3",
304 "Traditional Characters, Alternative Set 4",
305 "Traditional Characters, Alternative Set 5",
313 "Lower Case Numbers",
314 "Upper Case Numbers",
331 "No Transliteration",
333 "Hiragana to Katakana",
334 "Katakana to Hiragana",
335 "Kana to Romanization",
336 "Romanization to Hiragana",
337 "Romanization to Katakana",
338 "Hanja to Hangul, Alternative Set 1",
339 "Hanja to Hangul, Alternative Set 2",
340 "Hanja to Hangul, Alternative Set 3",
349 "Rounded Box Annotation",
351 "Inverted Circle Annotation",
352 "Parenthesis Annotation",
354 "Roman Numeral Annotation",
355 "Diamond Annotation",
367 "Ideographic Spacing",
374 }, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
375 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
376 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
377 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
378 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
379 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
380 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
381 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
382 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
383 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
384 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
385 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
386 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
387 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
388 EMPTYFEAT, EMPTYFEAT, EMPTYFEAT,
408 "Ideographic Spacing",
426 "All Typographic Features",
451 printf(
" /* Generated from %s */\n", __FILE__ );
454 i <
sizeof ( featreg_table ) /
sizeof ( GX_Feature_RegistryRec );
457 const char* feat_name;
461 feat_name = featreg_table[i].feat_name;
463 featreg_table[i].setting_name[nSettings];
467 printf(
" {%1d, %1d, %1d, %2d}, /* %s */\n",
470 ( ft_strncmp( feat_name,
471 APPLE_RESERVED, APPLE_RESERVED_LENGTH ) == 0 )
473 featreg_table[i].exclusive ? 1 : 0,
475 feat_name ? feat_name :
"__EMPTY__" );