summaryrefslogtreecommitdiff
path: root/Build/source/texk/lcdf-typetools/lcdf-typetools-src/otftotfm/setting.hh
blob: af1854174b254c61859f9c2b1b6be0d110f3f95d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef OTFTOTFM_SETTING_HH
#define OTFTOTFM_SETTING_HH
#include <lcdf/string.hh>

struct Setting {
    enum { NONE, FONT, SHOW, KERN, KERNX, MOVE, RULE, PUSH, POP,
           SPECIAL, DEAD };
    int op;
    int x;
    int y;
    String s;
    Setting(int op_in, int x_in = 0, int y_in = 0)
        : op(op_in), x(x_in), y(y_in) { }
    Setting(int op_in, const String &s_in) : op(op_in), s(s_in) { }
    bool valid_op() const               { return op >= FONT && op <= SPECIAL; }
};

#endif