#include <config.h>
#include <string.h>
#include "common.h"
#include "mdvi.h"
#include "private.h"
Go to the source code of this file.
Definition at line 59 of file gf.c.
#define COLOR |
( |
|
x) | |
((x) ? "BLACK" : "WHITE") |
Definition at line 34 of file gf.c.
Definition at line 35 of file gf.c.
Definition at line 36 of file gf.c.
Definition at line 56 of file gf.c.
Definition at line 50 of file gf.c.
Definition at line 51 of file gf.c.
Definition at line 41 of file gf.c.
Definition at line 42 of file gf.c.
#define GF_NEW_ROW_MAX 238 |
Definition at line 43 of file gf.c.
Definition at line 49 of file gf.c.
Definition at line 30 of file gf.c.
Definition at line 31 of file gf.c.
Definition at line 32 of file gf.c.
Definition at line 33 of file gf.c.
Definition at line 53 of file gf.c.
Definition at line 54 of file gf.c.
Definition at line 52 of file gf.c.
Definition at line 37 of file gf.c.
Definition at line 38 of file gf.c.
Definition at line 39 of file gf.c.
Definition at line 40 of file gf.c.
Definition at line 57 of file gf.c.
Definition at line 44 of file gf.c.
Definition at line 45 of file gf.c.
Definition at line 46 of file gf.c.
Definition at line 47 of file gf.c.
Definition at line 48 of file gf.c.
Definition at line 60 of file gf.c.
Definition at line 373 of file gf.c.
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)
Definition at line 235 of file gf.c.
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;
static int gf_read_bitmap |
( |
FILE * |
p, |
|
|
DviFontChar * |
ch |
|
) |
| |
|
static |
Definition at line 80 of file gf.c.
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"),
Initial value:= {
"GF",
0,
NULL,
NULL,
NULL,
kpse_gf_format,
NULL
}
Definition at line 66 of file gf.c.