Index: ttf2lht/ttf2lht.h =================================================================== --- ttf2lht/ttf2lht.h (nonexistent) +++ ttf2lht/ttf2lht.h (revision 18952) @@ -0,0 +1,18 @@ +#include + +typedef struct stroke_s stroke_t; + +struct stroke_s { + FT_Outline_Funcs funcs; + void (*init)(stroke_t *s); + void (*start)(stroke_t *s, int chr); + void (*finish)(stroke_t *s); + void (*uninit)(stroke_t *s); + + double x, y; + double dx, dy, scale_x, scale_y; +}; + + +#define OTX(s, x) (((x) + (s)->dx) * (s)->scale_x) +#define OTY(s, y) (((y) + (s)->dy) * (s)->scale_y)