Re: Cannot select font 'C'; add a missing hint
"G. Branden Robinson" <[email protected]> Tue, 14 Apr 2026 01:44:54 -0500
| Newsgroups | gmane.comp.printing.groff.general |
|---|---|
| Message-ID | <20260414064454.3bgsp745kbdmtmrx@illithid> |
At 2026-04-13T19:30:00+0000, Bjarni Ingi Gislason wrote: > A hint to users about avoiding such warnings is to add an > explanation, something like > > add ".if n .ftr C R" to "man.local" It makes about as much sense to just shut font warnings off. MANROFFOPT=-W font Or one could add a `warn` request to "man.local". .warn 0 One might prefer just to shut off the "font" warning category. .warn \n[.warn]-131072 Illustration: $ ~/groff-1.24.1/bin/nroff .ft C troff:<standard input>:1: warning: cannot select font 'C' .nr w \n[.warn]-131072 .warn \nw .ft C .nf Hello, world! .pl \n[nl]u <EOF> Hello, world! I am reminded about how it might be nice to extend the `warn` request's syntax to support chmod(1)-style expressions. .warn -font .warn =all .warn =w-font .warn =all+style-missing As I recall, Dave and I have spitballed this but I don't see a Savannah ticket for it. (The "style" category is forthcoming in groff 1.25.) > Similar for other warnings about fonts. If you want to take a "similar" approach to "other warnings about fonts", the foregoing are better solutions than accumulating a laundry list of font remappings as one encounters documents' futile attempts to switch to typesetter fonts on terminal devices. In my opinion a better approach is for a document maintainer to inspect the site of the warning, figure out what it was the author was trying to achieve, and adapt appropriately to the more limited capabilities of terminal devices. Regards, Branden
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmnd4mAACgkQ0Z6cfXEm bc6Hbw/9GrpLJYg4K7EGEP+VaWvh7DmlVSSNVjKoeYc+QfQpdFMsHESTd3XeJsdN P++c/x75kWF9up9sD58slToRx1wVpQemhEhMu6p8AD8ew+azGC+HvapskEdbhwbO TA0usW2Kiw0QDbs4c62cyAPsDcRI9r4tn82bO5er5+2pF04KfSMlCUHOWFD2QWHG ZUYyFYbxWItiPpNsYfWJUpB3nEBStSXyJr9RETogqDshR377JS2BBXBDZnUHNUzl ckYu8GRcZxhIOFOQLyIrRewCcW/oinBtgATJyX8Ujv0lhzCAQ5M7wte+xKswqdsJ /AfsnXchjJghE5cC5TONeqjp6CKgIFwdJ7Lrq8z0N2ttBGlJ+fbveY1QqD6Ju9N4 9Xjhk9DiT26pzdysdpEtzXR5E1dwPs7EiciZotg8wUzhafqOEoYtvVXGfnhbJ1u4 1QceZF/qJX6ayxXwRKwpLNI92pXS26hh98Pm9D1qzaTmYdPOzxrFz8nzhFXI1I3c kIrw0vosxv+FI8C0Sx869w5D+MwQYh/Bn4ZY9EI5qofUhV/mQR0HQHmQYQasCcWz 3+1T4jEYHFYrpdz/3bB5GHGLiJPFP2iZa/2E0SQ5b1ysx7jnUT2upsOkWYKLtGJe 24tVCqpgeWQsCZUjbXLz1MHcBp2szsAx+MWXVcnjSnOzqWyZdl0= =MVaS -----END PGP SIGNATURE-----