summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-11 16:58:20 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-11 16:58:20 +0000
commit58a26cd399ba32d2d911f924c14c7b25fc297b78 (patch)
treebe76cbd7c6677829504d46b83def49467bc3fec5 /term.h
parent8c998f6fb38c48a3f834b396046a65cb28997c05 (diff)
downloadmandoc-58a26cd399ba32d2d911f924c14c7b25fc297b78.tar.gz
Implement font-switching for PostScript. -Tps now supports
TERMFONT_BOLD (Courier-Bold) and TERMFONT_UNDER (Courier-Oblique). It doesn't look half bad. This accomplished through tricksy juggling of the one-char back-buffer.
Diffstat (limited to 'term.h')
-rw-r--r--term.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/term.h b/term.h
index 9206e4ad..3e0fdccf 100644
--- a/term.h
+++ b/term.h
@@ -51,6 +51,7 @@ struct termp_ps {
size_t psmargcur; /* current pos in margin buf */
size_t pspage; /* current page */
char last; /* character buffer */
+ enum termfont lastf; /* last set font */
};
struct termp {