gbranden pushed a commit to branch master
in repository groff.
commit e9db4c6b0fb3aecd6a1e7f01b133d2585e62d1a2
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Nov 24 15:25:21 2026 -0600
[doc,man]: Document new `pft` request.
* doc/groff.texi.in (Debugging):
* man/groff.7.man.in (Request short reference):
* man/groff_diff.7.man (New requests): Do it.
Fixes <https://savannah.gnu.org/bugs/?68522>.
NEWS: Add item.
---
ChangeLog | 6 ++++++
NEWS | 6 ++++++
doc/groff.texi.in | 16 ++++++++++++++++
man/groff.7.man.in | 14 ++++++++++++++
man/groff_diff.7.man | 16 ++++++++++++++++
5 files changed, 58 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 4d6326908..bc0c1d343 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,12 @@
* src/roff/groff/tests/pft-request-works.sh: New files; test it.
* src/roff/groff/groff.am: Update `groff_TESTS` to run tests.
+ * doc/groff.texi.in (Debugging):
+ * man/groff.7.man.in (Request short reference):
+ * man/groff_diff.7.man (New requests): Document it.
+
+ Fixes <https://savannah.gnu.org/bugs/?68522>.
+
2026-11-24 G. Branden Robinson <[email protected]>
* src/roff/troff/node.cpp (font_lookup_error)
diff --git a/NEWS b/NEWS
index 32658d710..fde7aea91 100644
--- a/NEWS
+++ b/NEWS
@@ -50,6 +50,12 @@ troff
* The `pfp` request now accepts arguments. Each is interpreted as a
font mounting position, which is reported if occupied.
+* A new request, `pft`, reports to to the standard error stream
+ properties of each of its font identifier argument (which can
+ (which can be a mounting position or an an abstract style).
+ Properties include the name of its description file, whether that
+ file marks it as special, emboldening, and zoom factor.
+
* The `pftr` request now accepts arguments. Each is interpreted as a
font identifier (which can be an abstract style but not a mounting
position), which is then looked up in the set of font translations
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 7e864a7b7..2d5e5a2fb 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -23394,6 +23394,22 @@ the meaning of which varies by output device,
follow.
@endDefreq
+@Defreq {pft, @Var{font-id @r{@dots{}}}}
+@cindex dumping font properties (@code{pftr})
+@cindex font properties, dumping (@code{pftr})
+@cindex properties, font, dumping (@code{pftr})
+Report,
+to the standard error stream,
+properties of each
+@var{font-id}
+(which can be a mounting position or an an abstract style).
+Properties include the name of its description file,
+whether that file marks it as special,
+emboldening,
+and
+zoom factor.
+@endDefreq
+
@Defreq {pftr, [@Var{font-id} @r{@dots{}}]}
@cindex dumping font translations (@code{pftr})
@cindex font translations, dumping (@code{pftr})
diff --git a/man/groff.7.man.in b/man/groff.7.man.in
index 6e7c9c3c5..370d62f3b 100644
--- a/man/groff.7.man.in
+++ b/man/groff.7.man.in
@@ -4925,6 +4925,20 @@ information about each occupied font mounting position
.I pos.
.
.TPx
+.REQ .pft "font-id \fR\&.\|.\|.\&\fP"
+Report,
+to the standard error stream,
+properties of each
+.I font-id
+(which can be a mounting position or an an abstract style).
+.
+Properties include the name of its description file,
+whether that file marks it as special,
+emboldening,
+and
+zoom factor.
+.
+.TPx
.REQ .pftr
Report,
to the standard error stream,
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index 3ec413625..37d6489eb 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -4078,6 +4078,22 @@ follow.
.
.
.TP
+.BI .pft\~ font-id\~\c
+\&.\|.\|.\&
+Report,
+to the standard error stream,
+properties of each
+.I font-id
+(which can be a mounting position or an an abstract style).
+.
+Properties include the name of its description file,
+whether that file marks it as special,
+emboldening,
+and
+zoom factor.
+.
+.
+.TP
.BR .pftr \~[\c
.IR font-id \~\&.\|.\|.]
Report,
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit