[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 08/12: xtotroff(1): Clarify.
From: |
G. Branden Robinson |
Subject: |
[groff] 08/12: xtotroff(1): Clarify. |
Date: |
Mon, 24 May 2021 13:06:14 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit da17a00b78176ec3e2cba80183908bfc58f2bec3
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon May 24 22:17:00 2021 +1000
xtotroff(1): Clarify.
* Offer much more explanation of what this program actually _does_.
* Refer to command-line options as "options", not "switches", a term
that is antiquated (even more so than the core X11 font API :-| ).
* (See also) Add URL to the XLFD manual. Add xref to groff_font(5).
---
src/utils/xtotroff/xtotroff.1.man | 52 +++++++++++++++++++++++++++++++--------
1 file changed, 42 insertions(+), 10 deletions(-)
diff --git a/src/utils/xtotroff/xtotroff.1.man
b/src/utils/xtotroff/xtotroff.1.man
index ad85cb6..bc3f676 100644
--- a/src/utils/xtotroff/xtotroff.1.man
+++ b/src/utils/xtotroff/xtotroff.1.man
@@ -67,34 +67,56 @@ font description files from X11 fonts.
.
Each line in
.I font-map
-consists of a
+consists of a series of lines of paired
.I groff
-font name and an X font name as a X Logical Font Description (XLFD)
-pattern,
-separated by whitespace.
-.
-Example:
+font names and a X font names as X Logical Font Description (XLFD)
+patterns,
+with the pair members separated by spaces and/or tabs.
.
+For example,
+an input
+.I font-map
+file consisting of the line
.
-.PP
.RS
.EX
TB \-adobe\-times\-bold\-r\-normal\-\-*\-*\-*\-*\-p\-*\-iso8859\-1
.EE
.RE
.
+maps the XLFD on the right to the
+.I groff
+font name
+.BR TB ,
+conventionally \[lq]Times bold\[rq].
+.
.
.PP
-The wildcards in the patterns are filled with the arguments to the
+.I xtotroff
+opens a connection to the running X server to query its font catalog,
+and aborts if it cannot.
+.
+If necessary,
+the wildcards in the XLFD patterns are populated with the arguments to
+the
.B \-r
and
.B \-s
-switches.
+options.
.
If a font name is still ambiguous,
.I xtotroff
aborts.
.
+For each successful mapping,
+.I xtotroff
+creates a
+.I groff
+font description file in the current working directory named for each
+.I groff
+font,
+and reports the mapping to the standard output stream.
+.
.
.\" ====================================================================
.SH Options
@@ -142,9 +164,19 @@ The only supported font encodings are \[lq]iso8859\-1\[rq]
and
.SH "See also"
.\" ====================================================================
.
+.UR https://\:www\:.x\:.org/\:releases/\:X11R7.6/\:doc/\:xorg\-docs/\
+\:specs/\:XLFD/xlfd\:.html
+\[lq]X Logical Font Description Conventions\[rq]
+.UE ,
+by Jim Flowers and Stephen Gildea.
+.
+.
+.PP
+.IR X (7),
.IR groff (@MAN1EXT@),
.IR gxditview (@MAN1EXT@),
-.IR troff (@MAN1EXT@)
+.IR troff (@MAN1EXT@),
+.IR groff_font (@MAN5EXT@)
.
.
.\" Restore compatibility mode (for, e.g., Solaris 10/11).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 08/12: xtotroff(1): Clarify.,
G. Branden Robinson <=