diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-11 16:58:20 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-11 16:58:20 +0000 |
commit | 9135551d9bae3fb8416b167d902085526b06a630 (patch) | |
tree | 9d8163d356043d91a23e7bf6fda18503e20fdc5f /term.h | |
parent | e605c5e9d0162d8d08ab2dd57330aa930987e974 (diff) | |
download | mandoc-9135551d9bae3fb8416b167d902085526b06a630.tar.gz mandoc-9135551d9bae3fb8416b167d902085526b06a630.tar.zst mandoc-9135551d9bae3fb8416b167d902085526b06a630.zip |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.62 2010/06/11 07:23:04 kristaps Exp $ */ +/* $Id: term.h,v 1.63 2010/06/11 16:58:20 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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 { |