41 #define GF_NEW_ROW_0 74
42 #define GF_NEW_ROW_1 75
43 #define GF_NEW_ROW_MAX 238
54 #define GF_POST_POST 249
57 #define GF_TRAILER 223
92 fseek(p, (
long)ch->
offset, SEEK_SET);
110 min_m = max_m - min_m;
111 min_n = max_n - min_n;
113 mdvi_error(
_(
"GF: invalid opcode %d in character %d\n"),
120 ch->
width = max_m - min_m + 1;
121 ch->
height = max_n - min_n + 1;
130 #define COLOR(x) ((x) ? "BLACK" : "WHITE")
132 paint_switch =
WHITE;
145 paint_switch = !paint_switch;
155 par,
COLOR(paint_switch), x, y));
156 if(paint_switch ==
BLACK)
159 paint_switch = !paint_switch;
165 paint_switch =
BLACK;
172 paint_switch =
WHITE;
182 paint_switch =
WHITE;
198 fseek(p, (
long)n, SEEK_CUR);
211 mdvi_error(
_(
"(gf) Character %d: invalid opcode %d\n"),
227 mdvi_error(
_(
"(gf) character %d has an incorrect bounding box\n"),
257 for(i = 0; i < loc; i++)
262 fseek(p, (
long)loc, SEEK_CUR);
265 if(fseek(p, (
long)-1, SEEK_END) == -1)
270 if(fseek(p, (
long)-2, SEEK_CUR) < 0)
274 if(op !=
GF_ID || n < 4)
277 fseek(p, (
long)-5, SEEK_CUR);
280 fseek(p, (
long)op, SEEK_SET);
290 mdvi_warning(
_(
"%s: bad checksum (expected %u, found %u)\n"),
298 for(loc = 0; loc < 256; loc++)
301 fseek(p, (
long)16, SEEK_CUR);
315 ch = &font->
chars[cc];
350 if(loc > 0 || hic < 255) {
369 font->
loc = font->
hic = 0;
377 if(code < font->loc || code > font->
hic || !font->
chars)
379 ch = &font->
chars[code - font->
loc];
388 if(fseek(font->
in, ch->
offset, SEEK_SET) == -1)