3 #include <X11/Xlib.h>
\r
4 #include <X11/Xutil.h>
\r
16 #define kResolution (1000 / kRate + 1) * 2
\r
17 #define kMinWidthY 2
\r
18 #define kMinWidthT 6
\r
20 #define kKakato 3 //has KAKATO = 2, no KAKATO = 1
\r
22 #define kMixdot (kWidth * 2) * (kWidth * 2 - 1)
\r
24 #define kMaxIDSSequenceLength 16
\r
25 #define kMaxIDCLength 16
\r
26 #define kMaxStrokeDataLength 256 // over 12(digits per integer with +/- flag) * 11(columns) + 1(line end)
\r
33 XPoint xpoly[kResolution];
\r
35 struct kPoint poly[kResolution];
\r
36 struct kPoint poly2[3];
\r
37 struct kPoint poly3[5];
\r
38 struct kPoint poly4[4];
\r
43 long xNowWhole, xNowNum, xNowDen, xNowDir;
\r
47 #define SGN(a) ( (a) > 0 ? 1 : ( (a) < 0 ? -1 : 0 ) )
\r
50 void dfDrawFont(int, int, int, int, int, int, int, int, int, int, int);
\r
52 void cdDrawCurve(double, double, double, double, double, double, int, int);
\r
53 void cdDrawLine(double, double, double, double, int, int);
\r
55 void icPolygon(struct kPoint *, int);
\r