Solved Any Groff Users? Trying to embed fonts

Hi,

I've recently switched to textproc/groff from Latex for typesetting books.

I am however, trying to embed the fonts into the compiled PDF as this is required for some publishers. I am using the args
-P -e to force GROPDF to embed the fonts but this has no effect. Moreover, it complains about erroneous entry for 'Times-Roman' - see below.

Does anyone have any suggestions? Thanks.




Code:
echo "HELLO WORLD" | groff -Tpdf -P -e > out.pdf

/usr/local/bin/gropdf: warning: The download file in '/usr/local/share/groff/1.23.0/font/devpdf'  has erroneous entry for 'Times-Roman (TR)'

steven@hostname:~ $ pdffonts  out.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
Times-Roman                          Type 1            Custom           no  no  yes      5  0
 
You don't say what version of FreeBSD you are using. Your test works for me on FreeBSD 14.1-RELEASE-p5:
Code:
[tulloch.278] $ uname -a
FreeBSD tulloch.oakes.consulting 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64
[tulloch.279] $ echo "HELLO WORLD" | groff -Tpdf -P -e > out.pdf
[tulloch.280] $ pdffonts  out.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
Times-Roman                          Type 1            Custom           yes no  yes      5  0
[tulloch.281] $ wc -c out.pdf
  117206 out.pdf
[tulloch.282] $ # xpdf out.pdf shows "HELLO WORLD".
Maybe your groff installation is damaged? That message regarding download file in '/usr/local/share/groff/1.23.0/font/devpdf' looks suspect to me because it's not a file, it's a directory:
Code:
[tulloch.283] $ ls -la /usr/local/share/groff/1.23.0/font     
total 62
drwxr-xr-x  12 root wheel 12 Jun  8 12:59 .
drwxr-xr-x   6 root wheel  7 Jun  8 12:59 ..
drwxr-xr-x   2 root wheel  7 Jun  8 12:59 devascii
drwxr-xr-x   2 root wheel  7 Jun  8 12:59 devcp1047
drwxr-xr-x   3 root wheel 40 Jun  8 12:59 devdvi
drwxr-xr-x   2 root wheel 12 Jun  8 12:59 devhtml
drwxr-xr-x   2 root wheel  7 Jun  8 12:59 devlatin1
drwxr-xr-x   2 root wheel 21 Jun  8 12:59 devlbp
drwxr-xr-x   3 root wheel 50 Jun  8 12:59 devlj4
drwxr-xr-x   4 root wheel 78 Jun  8 12:59 devpdf
drwxr-xr-x   3 root wheel 51 Jun  8 12:59 devps
drwxr-xr-x   2 root wheel  7 Jun  8 12:59 devutf8

Edit:
Code:
[tulloch.291] grep Times-Roman /usr/local/share/groff/1.23.0/font/devpdf/download
    Times-Roman    */usr/local/share/ghostscript/fonts/n021003l.pfb
[tulloch.292] $ ls -lad /usr/local/share/ghostscript/fonts/n021003l.pfb
-rw-r--r--  1 root wheel 113206 May 21 11:07 /usr/local/share/ghostscript/fonts/n021003l.pfb
This version of n021003l.pfb comes from the print/gsfonts package.
 
Back
Top