79 fseek(p, (
long)mlen, SEEK_CUR);
82 mdvi_warning(
_(
"%s: Checksum mismatch (expected %u, got %u)\n"),
113 scale =
TFMSCALE(scale, z, alpha, beta);
117 hdpi =
FROUND(params->
mag * params->
dpi * scale / design);
121 fread(name, 1, n, p);
123 DEBUG((
DBG_FONTS,
"(vf) %s: defined font `%s' at %.1fpt (%dx%d dpi)\n",
125 (
double)scale / (params->
tfm_conv * 0x100000), hdpi, vdpi));
128 ref =
font_reference(params,
id, name, checksum, hdpi, vdpi, scale);
130 mdvi_error(
_(
"(vf) %s: could not load font `%s'\n"),
149 for(i = 0; i < 256; i++)
168 if (cc < 0 || cc > 65536) {
170 mdvi_error(
_(
"(vf) %s: unexpected character %d\n"),
174 if(loc < 0 || cc < loc)
176 if(hic < 0 || cc > hic)
181 for(i = nchars; i < cc + 16; i++)
191 DEBUG((
DBG_GLYPHS,
"(vf) %s: defined character %d (macro length %d)\n",
198 if(mlen + pl + 1 > msize) {
199 msize = mlen + pl + 256;
202 if(pl && fread(macros + mlen, 1, pl, p) != pl)
220 "(vf) %s: macros use %d bytes\n", font->
fontname, msize));
222 if(loc > 0 || hic < nchars-1) {