[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 04/07: [docs]: Clarify discussion of "scaled points".
From: |
G. Branden Robinson |
Subject: |
[groff] 04/07: [docs]: Clarify discussion of "scaled points". |
Date: |
Thu, 29 Dec 2022 01:46:23 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 740bde7de01b3163c3753aa05f523094f9de9130
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Dec 28 20:37:36 2022 -0600
[docs]: Clarify discussion of "scaled points".
* doc/groff.texi (Changing the Type Size): Replace duplicated material
with cross reference to section/node "Using Fractional Type Sizes".
(Using Fractional Tyep Sizes): Recast. Clarify how "scaled points"
get scaled. Push presentation of "z" scaling unit out of the way of
this narrative.
(DESC File Format): Improve definition of "sizescale" directive.
* man/groff_diff.7.man:
* man/groff_font.5.man: Sync with the foregoing.
---
doc/groff.texi | 31 ++++++++++++++-----------------
man/groff_diff.7.man | 17 ++++++++---------
man/groff_font.5.man | 6 ++++--
3 files changed, 26 insertions(+), 28 deletions(-)
diff --git a/doc/groff.texi b/doc/groff.texi
index 10c5729de..628e8d314 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -11716,14 +11716,10 @@ Some devices may permit only certain type sizes, in
which case GNU
file normally specifies which type sizes are allowed by the device.
Use the @code{sizes} request to change the permissible sizes for the
-output device. Arguments are in scaled points; the @code{sizescale}
-line in the @file{DESC} file for the output device provides the scaling
-factor. For example, if the scaling factor is 1000, then the value
-12000 is 12@tie{}points.
-
-Each argument can be a single type size (such as @samp{12000}), or a
-range of sizes (such as @samp{4000-72000}). You can optionally end the
-list with a zero.
+output device. Arguments are in scaled points; @xref{Using Fractional
+Type Sizes}. Each can be a single type size (such as @samp{12000}), or
+a range of sizes (such as @samp{4000-72000}). You can optionally end
+the list with a zero.
@endDefreq
@need 1000
@@ -11845,13 +11841,14 @@ scaled points can thus represent a non-integral type
size.
A @dfn{scaled point} is equal to @math{1/@var{sizescale}} points, where
@var{sizescale} is specified in the device description file @file{DESC},
and defaults to@tie{}1.@footnote{@xref{Device and Font Description
-Files}.} The scaling unit @samp{z} multiplies by @var{sizescale}.
-Requests and escape sequences in GNU @code{troff} interpret arguments
-that represent a type size in scaled points; that is, they evaluate each
-such argument using a default scaling unit of @samp{z}. Arguments
-treated in this way comprise those to the escape sequences @code{\H} and
-@code{\s}, to the request @code{ps}, the third argument to the @code{cs}
-request, and the second and fourth arguments to the @code{tkf} request.
+Files}.} Requests and escape sequences in GNU @code{troff} interpret
+arguments that represent a type size in scaled points, which the
+formatter multiplies by @var{sizescale} and converts to an integer.
+Arguments treated in this way comprise those to the escape sequences
+@code{\H} and @code{\s}, to the request @code{ps}, the third argument to
+the @code{cs} request, and the second and fourth arguments to the
+@code{tkf} request. Scaled points may be specified explicitly with the
+@code{z} scaling unit.
For example, if @var{sizescale} is@tie{}1000, then a scaled point is one
thousandth of a point. The request @samp{.ps 10.5} is synonymous with
@@ -18289,8 +18286,8 @@ extend over more than one line.
@item sizescale @var{n}
@kindex sizescale
-Set the scale factor for type sizes to one divided by@tie{}@var{n}. The
-default is@tie{}@code{1}. @xref{Using Fractional Type Sizes}.
+A typographical point is subdivided into @var{n}@tie{}scaled points.
+The default is@tie{}@code{1}. @xref{Using Fractional Type Sizes}.
@item styles @var{S1} @r{@dots{}} @var{Sm}
@kindex styles
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index dbee7b6b2..b520e7129 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -193,17 +193,12 @@ and defaults to\~1.
(See
.MR groff_font @MAN5EXT@ .)
.
-The scaling
-.RB unit\~\[lq] z \[rq]
-has multiplies by
-.IR sizescale .
-.
Requests and escape sequences in GNU
.I troff \" GNU
-interpret arguments that represent a type size scaled points;
-that is,
-they evaluate such arguments using a default scaling unit
-.RB of\~\[lq] z \[rq].
+interpret arguments that represent a type size in points,
+which the formatter multiplies by
+.I sizescale
+and converts to an integer.
.
Arguments treated in this way comprise those to the escape sequences
.B \[rs]H
@@ -218,6 +213,10 @@ and the second and fourth arguments to the
.B tkf
request.
.
+Scaled points may be specified explicitly with the
+.B z
+scaling unit.
+.
.
.P
For example,
diff --git a/man/groff_font.5.man b/man/groff_font.5.man
index d9570d9d9..a26003ed9 100644
--- a/man/groff_font.5.man
+++ b/man/groff_font.5.man
@@ -375,8 +375,10 @@ The list can extend over more than one line.
.
.TP
.BI sizescale\~ n
-Set the scale factor for type sizes to one divided
-.RI by\~ n .
+A typographical point
+is subdivided into
+.IR n \~scaled
+points.
.
The default
.RB is\~ 1 .
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 04/07: [docs]: Clarify discussion of "scaled points".,
G. Branden Robinson <=