texk/lcdf-typetools/lcdf-typetools-src/otftotfm/setting.hh
raw| 1 | #ifndef OTFTOTFM_SETTING_HH |
| 2 | #define OTFTOTFM_SETTING_HH |
| 3 | #include <lcdf/string.hh> |
| 4 | |
| 5 | struct Setting { |
| 6 | enum { NONE, FONT, SHOW, KERN, KERNX, MOVE, RULE, PUSH, POP, |
| 7 | SPECIAL, DEAD }; |
| 8 | int op; |
| 9 | int x; |
| 10 | int y; |
| 11 | String s; |
| 12 | Setting(int op_in, int x_in = 0, int y_in = 0) |
| 13 | : op(op_in), x(x_in), y(y_in) { } |
| 14 | Setting(int op_in, const String &s_in) : op(op_in), s(s_in) { } |
| 15 | bool valid_op() const { return op >= FONT && op <= SPECIAL; } |
| 16 | }; |
| 17 | |
| 18 | #endif |