version 1.74, 2015/04/04 17:47:18 |
version 1.76, 2015/10/11 21:12:55 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <assert.h> |
#include <assert.h> |
|
#include <err.h> |
#include <stdarg.h> |
#include <stdarg.h> |
#include <stdint.h> |
#include <stdint.h> |
#include <stdio.h> |
#include <stdio.h> |
Line 516 pdf_alloc(const struct mchars *mchars, const struct ma |
|
Line 517 pdf_alloc(const struct mchars *mchars, const struct ma |
|
if (NULL != (p = pspdf_alloc(mchars, outopts))) |
if (NULL != (p = pspdf_alloc(mchars, outopts))) |
p->type = TERMTYPE_PDF; |
p->type = TERMTYPE_PDF; |
|
|
return(p); |
return p; |
} |
} |
|
|
void * |
void * |
Line 527 ps_alloc(const struct mchars *mchars, const struct man |
|
Line 528 ps_alloc(const struct mchars *mchars, const struct man |
|
if (NULL != (p = pspdf_alloc(mchars, outopts))) |
if (NULL != (p = pspdf_alloc(mchars, outopts))) |
p->type = TERMTYPE_PS; |
p->type = TERMTYPE_PS; |
|
|
return(p); |
return p; |
} |
} |
|
|
static struct termp * |
static struct termp * |
Line 582 pspdf_alloc(const struct mchars *mchars, const struct |
|
Line 583 pspdf_alloc(const struct mchars *mchars, const struct |
|
pagex = 216; |
pagex = 216; |
pagey = 356; |
pagey = 356; |
} else if (2 != sscanf(pp, "%ux%u", &pagex, &pagey)) |
} else if (2 != sscanf(pp, "%ux%u", &pagex, &pagey)) |
fprintf(stderr, "%s: Unknown paper\n", pp); |
warnx("%s: Unknown paper", pp); |
} |
} |
|
|
/* |
/* |
Line 616 pspdf_alloc(const struct mchars *mchars, const struct |
|
Line 617 pspdf_alloc(const struct mchars *mchars, const struct |
|
p->ps->lineheight = lineheight; |
p->ps->lineheight = lineheight; |
|
|
p->defrmargin = pagex - (marginx * 2); |
p->defrmargin = pagex - (marginx * 2); |
return(p); |
return p; |
} |
} |
|
|
static void |
static void |
Line 1270 ps_width(const struct termp *p, int c) |
|
Line 1271 ps_width(const struct termp *p, int c) |
|
else |
else |
c -= 32; |
c -= 32; |
|
|
return((size_t)fonts[(int)TERMFONT_NONE].gly[c].wx); |
return (size_t)fonts[(int)TERMFONT_NONE].gly[c].wx; |
} |
} |
|
|
static int |
static int |
Line 1325 ps_hspan(const struct termp *p, const struct roffsu *s |
|
Line 1326 ps_hspan(const struct termp *p, const struct roffsu *s |
|
break; |
break; |
} |
} |
|
|
return(r * 24.0); |
return r * 24.0; |
} |
} |
|
|
static void |
static void |