I am trying to use the Palatino font with my groff mom document.
The documentation says
FAMILY takes one argument: the name of the family you want. Groff comes with a small set of basic families, each identified by a 1-, 2-or 3-letter mnemonic. The standard families are:
A = Avant Garde
BM = Bookman
H = Helvetica
HN = Helvetica Narrow
N = New Century Schoolbook
P = Palatino
T = Times Roman
ZCM = Zapf Chancery
The argument you pass to FAMILY is the identifier at left, above. For example, if you want Helvetica, enter
.FAMILY H
I assume then that I can use the Palatino font with .FAMILY P
. However, when I do this I get these warnings, and the compiled PDF uses a fallback monospace font:
report.mom:28: warning: can't find font `PR'
report.mom:31: warning: can't find font `PB'
report.mom:31: warning: can't find font `PI'
report.mom:31: warning: can't find font `PBI'
[mom]: Either font style "B" at line 31 does not exist in family "P",
or family "P" has not been installed.
Aborting 'report.mom' at FT, line 31.
I am compiling like this:
pdfmom -t report.mom > report.pdf
I have groff version 1.22.3 installed.
My interpretation of "Groff comes with a small set of basic families" is that all of the standard families are available in the default installation of groff.
Am I mistaken? Is there a manual step I need to take to install or configure Palatino for use by groff?
Edit
Looking more closely on my system:
$ ls /usr/share/groff/1.22.3/font/devpdf
CB CI DESC enc Foundry HBI HR S TBI TR ZD
CBI CR download EURO HB HI map TB TI util
$ ls /usr/share/groff/1.22.3/font/devps
AB BMB CB DESC freeeuro.pfa HI HNR NI PI SS text.enc ZCMI
ABI BMBI CBI download generate HNB HR NR PR symbolsl.pfa TI ZD
AI BMI CI EURO HB HNBI NB PB prologue TB TR ZDR
AR BMR CR freeeuro.afm HBI HNI NBI PBI S TBI zapfdr.pfa
So it appears I have Palantino available for the ps
device (because of the P*
files in font/devps
) but not for the pdf
device.
I tried to just copy the P*
files from font/devps
to font/devpdf
and recompile, but then the text had weird spacing issues after. There are no spacing issues if I compile with -Tps
.
How can I correctly configure my system to allow me to use the Palantino font with the pdf
device?
/usr/share/groff/1.22.3/font/devpdf/PBI
is in packagegroff-perl
, whereasgroff-base
contains all the.../devps/
metrics files.groff-perl
apt
package, unless its part of a PPA I don't have. I have both thegroff
andgroff-base
apt
packages installed (both are version 1.22.3).groff -mom -Tps -t report.mom > report.ps
and view the PS file in evince, the text doesn't have any spacing issues. When I copy theP*
files tofont/devpdf
and compile to PDF withpdfmom -t report.mom > report.pdf
, then the text has spacing issues in PDF. So I believe just copying thefont/devps/P*
files tofont/devpdf
is not the right solution.font/devpdf
. Try upgrading Groff?