[Bug 273255] textproc/groff:

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 21 Aug 2023 01:56:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273255

            Bug ID: 273255
           Summary: textproc/groff:
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: bapt@FreeBSD.org
          Reporter: phil.chadwick@claremont.farm
             Flags: maintainer-feedback?(bapt@FreeBSD.org)
          Assignee: bapt@FreeBSD.org

I have been downloading PostScript fonts into groff-produced documents for
decades and it just broke with FreeBSD 13.2-RELEASE-p2.

To this end I have my own /usr/local/share/groff/current/font/devps directory
that I drop in for groff.

GNU grops (groff) version 1.22.4 works.

GNU grops (groff) version 1.23.0 does not work.

I expect this bug needs to go straight upstream.

To use your own PostScript font in groff, you place it in the "download" file:

[strand.129] $ cd /usr/local/share/groff/1.23.0/font
[strand.130] $ ls -lad devps*
drwxr-xr-x  3 root  wheel      793 Aug 21 10:14 devps    # my drop in
replacement
drwxr-xr-x  3 root  wheel       51 Aug 12 22:40 devps.orig

[strand.131] $ cat devps.orig/download   # the original download file
# List of downloadable fonts
# PostScript-name       Filename

Symbol-Slanted          symbolsl.pfa
ZapfDingbats-Reverse    zapfdr.pfa
FreeEuro                freeeuro.pfa

[strand.132] $ grep Times devps/download    # my modified download file
Times-Bold      type1.ps/Times-Bold.ps
Times-BoldItalic        type1.ps/Times-BoldItalic.ps
Times-Italic    type1.ps/Times-Italic.ps
Times-Roman     type1.ps/Times-Roman.ps

[strand.271] $ cd /usr/local/share/groff/1.23.0/font/devps

[strand.272] $ ls -lad TR    # font metrics for my Times Roman font
lrwxr-xr-x  1 root  wheel  13 Aug  3  2006 TR -> ./Times-Roman
[strand.274] $ head -6 TR
name TR
internalname Times-Roman
spacewidth 250
encoding text.enc
ligatures fi fl 0
kernpairs

[strand.278] $ file type1.ps/Times-Roman.ps   # my downloadable Type 1 font for
TR
type1.ps/Times-Roman.ps: PostScript Type 1 font text (Times-Roman 001.007)

[strand.279] $ cd /home/phil/Documents/docs/recipes/mine
[strand.280] $ make german_meat_balls
groff -t -Tps -mm -P-pa4 german_meat_balls.nr >german_meat_balls.ps
grops:<standard input>:(german_meat_balls.nr):1135: error: failed to open
PostScript resource 'type1.ps/Times-Roman.ps': No error: 0
grops:<standard input>:(german_meat_balls.nr):1135: error: failed to open
PostScript resource 'type1.ps/Times-Bold.ps': No error: 0

I have never seen those errors before.  The document produced does not contain
the PostScript fonts requested in the
/usr/local/share/groff/1.23.0/font/devps/download file for the Times-Roman and
Times-Bold fonts.  It should.

I also tested the FreeEuro font (using the \[eu] character), which also
requires download of freeeuro.pfa, and it worked.

-- 
You are receiving this mail because:
You are the assignee for the bug.