From dd0cac76b8c2d4067ba6cb936ca1f43f6bebeadb Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 18 May 2011 23:59:08 +0000 Subject: Make any un-recognised font be considered a call for the Roman font. This makes sequences of \f[unknown] \fP not completely puke. From a TODO by schwarze@. --- term.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'term.c') diff --git a/term.c b/term.c index 04d55d67..97a9ecab 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.194 2011/05/17 22:32:45 kristaps Exp $ */ +/* $Id: term.c,v 1.195 2011/05/18 23:59:08 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -471,6 +471,8 @@ term_word(struct termp *p, const char *word) case (ESCAPE_FONTITALIC): term_fontrepl(p, TERMFONT_UNDER); break; + case (ESCAPE_FONT): + /* FALLTHROUGH */ case (ESCAPE_FONTROMAN): term_fontrepl(p, TERMFONT_NONE); break; -- cgit v1.2.3