From de451aaf7a927d2994d3e526df07235dee8005af Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 14 Oct 2013 01:43:14 +0000 Subject: Parse and ignore the .fam (font family) request. Fixes irunner(1) in devel/ipython and uim-xim(1) in inputmethods/uim. Thanks to naddy@ for bringing these to my attention. --- roff.7 | 10 ++++++++-- roff.c | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/roff.7 b/roff.7 index 7c26086e..587fe5f1 100644 --- a/roff.7 +++ b/roff.7 @@ -1,4 +1,4 @@ -.\" $Id: roff.7,v 1.42 2013/08/08 20:07:47 schwarze Exp $ +.\" $Id: roff.7,v 1.43 2013/10/14 01:43:14 schwarze Exp $ .\" .\" Copyright (c) 2010, 2011 Kristaps Dzonsons .\" Copyright (c) 2010, 2011 Ingo Schwarze @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 8 2013 $ +.Dd $Mdocdate: October 14 2013 $ .Dt ROFF 7 .Os .Sh NAME @@ -638,6 +638,12 @@ Begin an equation block. See .Xr eqn 7 for a description of the equation language. +.Ss \&fam +Change the font family. +This line-scoped request is intended to have one argument specifying +the font family to be selected. +It is a groff extension, and currently, it is ignored including its +arguments, and the number of arguments is not checked. .Ss \&hy Set automatic hyphenation mode. This line-scoped request is currently ignored. diff --git a/roff.c b/roff.c index b3be0fb4..a1939a42 100644 --- a/roff.c +++ b/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.184 2013/10/05 22:25:12 schwarze Exp $ */ +/* $Id: roff.c,v 1.185 2013/10/14 01:43:14 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze @@ -46,6 +46,7 @@ enum rofft { ROFF_de1, ROFF_ds, ROFF_el, + ROFF_fam, ROFF_hy, ROFF_ie, ROFF_if, @@ -235,6 +236,7 @@ static struct roffmac roffs[ROFF_MAX] = { { "de1", roff_block, roff_block_text, roff_block_sub, 0, NULL }, { "ds", roff_ds, NULL, NULL, 0, NULL }, { "el", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT, NULL }, + { "fam", roff_line_ignore, NULL, NULL, 0, NULL }, { "hy", roff_line_ignore, NULL, NULL, 0, NULL }, { "ie", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT, NULL }, { "if", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT, NULL }, -- cgit v1.2.3-56-ge451