Dave
2020-08-04 06:11:21 UTC
URL:
<https://savannah.gnu.org/bugs/?58894>
Summary: remove nonfunctional lines from groff font files
Project: GNU troff
Submitted by: barx
Submitted on: Tue 04 Aug 2020 01:11:19 AM CDT
Category: Font devps
Severity: 3 - Normal
Item Group: Warning/Suspicious behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
As bug #58718 observes, groff does not allow kernpairs in its font files with
a space as the first element.
Despite this, several kernpair entries in a handful of font files
(specifically font/devps/{[HN]*,PR}) have "u0020" as the first element. True
to Werner's assertion, these lines seem to have no effect.
$ cat kerntest
.de sample
A Very Yellow Tortoise Always Wins.
..
.ps 24
.vs 24
.nf
.sp
.fam N
.sample
.fam New
.sample
.fam Newest
.sample
$ mkdir /tmp/devps
$ grep -v ^u0020 /usr/share/groff/current/font/devps/NR > /tmp/devps/NewR
$ grep -v '^[VTY] ' /usr/share/groff/current/font/devps/NR >
/tmp/devps/NewestR
$ groff -F/tmp kerntest > kerntest.ps
The first two lines of the resulting PostScript file look identical, despite
the lines using font files that specify different kerning rules around spaces.
The third output line definitely shows by contrast the absence of kerning
after some of the capital letters.
Groff shouldn't ship font files with lines that don't do the advertised job.
Ideally, bug #58718 would be fixed so that these lines _do_ work. But if a
fix for that bug is not ready by the time of the next release, the
nonfunctional lines in the font files should be removed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58894>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
<https://savannah.gnu.org/bugs/?58894>
Summary: remove nonfunctional lines from groff font files
Project: GNU troff
Submitted by: barx
Submitted on: Tue 04 Aug 2020 01:11:19 AM CDT
Category: Font devps
Severity: 3 - Normal
Item Group: Warning/Suspicious behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
As bug #58718 observes, groff does not allow kernpairs in its font files with
a space as the first element.
Despite this, several kernpair entries in a handful of font files
(specifically font/devps/{[HN]*,PR}) have "u0020" as the first element. True
to Werner's assertion, these lines seem to have no effect.
$ cat kerntest
.de sample
A Very Yellow Tortoise Always Wins.
..
.ps 24
.vs 24
.nf
.sp
.fam N
.sample
.fam New
.sample
.fam Newest
.sample
$ mkdir /tmp/devps
$ grep -v ^u0020 /usr/share/groff/current/font/devps/NR > /tmp/devps/NewR
$ grep -v '^[VTY] ' /usr/share/groff/current/font/devps/NR >
/tmp/devps/NewestR
$ groff -F/tmp kerntest > kerntest.ps
The first two lines of the resulting PostScript file look identical, despite
the lines using font files that specify different kerning rules around spaces.
The third output line definitely shows by contrast the absence of kerning
after some of the capital letters.
Groff shouldn't ship font files with lines that don't do the advertised job.
Ideally, bug #58718 would be fixed so that these lines _do_ work. But if a
fix for that bug is not ready by the time of the next release, the
nonfunctional lines in the font files should be removed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58894>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/