From 9135551d9bae3fb8416b167d902085526b06a630 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 11 Jun 2010 16:58:20 +0000 Subject: 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. --- term.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'term.h') diff --git a/term.h b/term.h index 7f67e246..825ad281 100644 --- a/term.h +++ b/term.h @@ -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 * @@ -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 { -- cgit v1.2.3