10 static double basex, basey;
11 static double curx, cury;
13 static void remember(
double x,
double y)
28 static void text_draw(
double x,
double y)
48 static void text_move(
double x,
double y)
61 double sinrot,
double cosrot,
unsigned char character)
69 void (*Do) (double, double);
79 for (i = 1; i < n_vects; i++) {
87 ax = (
int)(text_size_x * (
double)ix);
88 ay = (
int)(text_size_y * (
double)iy);
91 remember(x + (ax * cosrot - ay * sinrot),
92 y - (ax * sinrot + ay * cosrot));
95 (*Do) (x + (ax * cosrot - ay * sinrot),
96 y - (ax * sinrot + ay * cosrot));
105 ax = (
int)(text_size_x * (
double)ix);
106 ay = (
int)(text_size_y * (
double)iy);
108 text_move(basex + (ax * cosrot - ay * sinrot),
109 basey - (ax * sinrot + ay * cosrot));
111 remember(basex + (ax * cosrot - ay * sinrot),
112 basey - (ax * sinrot + ay * cosrot));
124 soft_text(x, y, text_size_x, text_size_y, text_rotation,
string);
136 # define RpD ((2 * M_PI) / 360.)
137 # define D2R(d) (double)(d * RpD)
143 double sinrot = sin(
D2R(text_rotation));
144 double cosrot = cos(
D2R(text_rotation));
147 curx = basex = (double)x;
148 cury = basey = (double)y;
150 drawchar(text_size_x, text_size_y, sinrot, cosrot, *
string++);
160 double sinrot = sin(
D2R(text_rotation));
161 double cosrot = cos(
D2R(text_rotation));
164 curx = basex = (double)x;
165 cury = basey = (double)y;
166 drawchar(text_size_x, text_size_y, sinrot, cosrot, achar);
void get_text_ext(int *, int *, int *, int *)
void COM_Move_abs(int, int)
void soft_text(int, int, double, double, double, const char *)
void soft_text_ext(int x, int, double, double, double, const char *)
void onechar(int, int, double, double, double, unsigned char)
void COM_Cont_abs(int x, int y)
void drawchar(double, double, double, double, unsigned char)
int get_char_vects(unsigned char, int *, unsigned char **, unsigned char **)