It makes no sense to warn about a font in the nroff mode (nroff) as only
different styles (R, I, B, BI) are present.
Just do not report about such in nroff mode.
-.-
For my version of groff:
src/roff/troff/env.cpp (select_font()): Do not send a warning in nroff
mode
when a font cannot be selected
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 92414b389..8194632f3 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1374,7 +1374,7 @@ void select_font(symbol s)
else {
if (s == "DESC")
error("'%1' is not a valid font name", s.contents());
- else if (!curenv->select_font(s))
+ else if (!curenv->select_font(s) && !in_nroff_mode)
warning(WARN_FONT, "cannot select font '%1'", s.contents());
}
}