[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #59933] Curly brackets displayed correctly in ps, but not in pd
G. Branden Robinson
Re: [bug #59933] Curly brackets displayed correctly in ps, but not in pdf
Wed, 1 Jun 2022 12:18:23 -0500
[this conversation is going to bug-groff but not to the ticket]
At 2022-06-01T14:25:51+0200, Oliver Corff wrote:
> Hi Branden,
> thank you for the update!
> I checked, there is no directory type1/ under /usr/share/fonts.
> Then, I did a "locate a0100" and found the fonts in
> Groff will probably not have these in the standard search path.
> I'll experiment with setting a symbolic link from /usr/share/fonts and
> let you know tonight.
It's probably going to be more complicated than that. groff itself does
not read and does not use the PFB and AFM files provided by URW; that is
because groff does not actually do font rendering. That is up to the
The way this works for PostScript and PDF output is that groff needs
"font _description_ files" in its own (really, device-independent troff)
format. This tells it what the geometries of the glyphs provided by the
fonts are. That way groff draws them in the correct places.
(Since Dave is CCed and he knows what a terminological stickler I am,
this is why I am militant about calling TR, HB, ZCMI, etc., "font
_description_ files" in our documentation. 30 years ago as a very green
Unix user on SunOS, I could not understand why troff "fonts" had such
unfriendly, indecipherably short names, and how on earth the minimal
quantity of information in them could possibly draw glyphs.)
What groff _can_ do is construct PostScript and PDF files that embed the
fonts that they use. That is what the "download" files for these output
devices are for. They tell grops(1) and gropdf(1) where to find the
_actual_ font files corresponding to each of the groff font identifiers
used in the document.
This is a big part of what Peter Schaffter's "install-font" shell
script is all about. And why managing this better, with less user
involvement, is one of the major desired feature developments for
Description: PGP signature