On Sun Jan 19, 2025 at 8:43 AM CET, Ihor Radchenko wrote: > "G. Branden Robinson" <g.branden.robin...@gmail.com> writes: > >> What about \fC\f[CR]Lorem\fP\fP? > > > > Unreliable. As onf pointed out, not only is the font selection not > > backed up by a stack, but it the identity of "the previous font" is not > > well-defined if you attempt to select a non-existent font (as either or > > both of `C` and `CR` may be). > > I am wondering if the situations like the above should be caught by > groff linter. Currently, they seem not.
They actually are: $ groff -Tutf8 -ww << EOF .pl 1 One two \fCthree\fP four. EOF troff:<standard input>:2: warning: cannot select font 'C' One two three four. ~ onf