[ANNOUNCEMENT] Updated: groff-1.23.0-1
Christian Franke
Christian.Franke@t-online.de
Sun Jul 23 14:52:55 GMT 2023
Christian Franke via Cygwin wrote:
> ...
>>> - Man pages could no longer be formatted with a specific font. Only
>>> header and footer lines use the selected font then, the rest stays
>>> at the default font 'T':
>> […]
>>> Intentional change or regression?
>> IDK, ask upstream.
>
> OK, will do. Didn't find anything similar here:
> https://savannah.gnu.org/bugs/?group=groff
>
> IMO a regression, obvious in the postscript output:
>
> $ groff -man -T ps -f H <<EOF
> .TH TOOL "1" "2023-07-23" "Toolset" "Section"
> .SH NAME
> Tool \- do something interesting
> EOF
> ...
> %%EndPageSetup
> /F0 10/Helvetica-Oblique@0 SF -.4(TO)72 48 S(OL).4 E/F1 10/Helvetica@0
> SF 174.995(\(1\) Section).5 F F0 -.4(TO)177.775 G(OL).4 E F1(\(1\)).5 E
> /F2 10.95/Times-Bold@0 SF -.219(NA)72 84 S(ME).219 E/F3 10/Times-Roman@0
> SF -.8(To)108 96 S(ol \255 do something interesting).8 E F1 -1.2(To)72
> 768 S 174.06(olset 2023-07-23)1.2 F(1)202.87 E 0 Cg EP
> %%Trailer
> ...
>
> /Times-* should not appear above.
Found the issue: T(imes) is unconditionally stored to a variable which
is used by SH macro:
$ cat /usr/share/groff/1.23.0/tmac/an.tmac
...
.de1 SH
. fam \\*[an*body-family]
...
.ds an*body-family T \" Times
...
Fixed upstream in:
http://git.savannah.gnu.org/cgit/groff.git/commit/tmac/an.tmac?id=6e03ad16ea8ed053fbffb5296d2670d6cdb4e931
Postscript output looks sane then:
%%EndPageSetup
/F0 10/Helvetica-Oblique@0 SF -.4(TO)72 48 S(OL).4 E/F1 10/Helvetica@0
SF 174.995(\(1\) Section).5 F F0 -.4(TO)177.775 G(OL).4 E F1(\(1\)).5 E
/F2 10.95/Helvetica-Bold@0 SF(NAME)72 84 Q F1 -1.2(To)108 96 S
(ol \255 do something interesting)1.2 E -1.2(To)72 768 S 174.06
(olset 2023-07-23)1.2 F(1)202.87 E 0 Cg EP
%%Trailer
--
Regards,
Christian
More information about the Cygwin
mailing list