![]() ![]() (use -dPDFOPTIONS=/printer among other options). The PostScript output files will show up fine in gv.Īlso, ps2pdf embeds them in PDF perfectly fine Ghostscript can also see them thanks to the environment variables set up Now, groff can see LGR, LGI, LGB, and LGBI fonts since they are in the ![]() Put these three lines in $HOME/.profile (or equivalent for.LetterGothic-BoldItalic /LetterGothic-BolIta Create Fontmap directory in $HOME/.fonts with entries such as.Remove *.afm files from $GROFF/site-font/devps if you want.Add -i option for italic and -n for monospaced fonts (see man page).For example, LGR could be a name for LetterGothic Regular.FN above is the font name groff will use.Ttf2afm $HOME/.fonts/TrueType/fontname.ttf -o fontname.afmĪfmtodit -e text.enc fontname.afm textmap FN Ensure that the local font directory exists.It is assumed that Ghostscript is installedĪnd that the latest groff version is installed in $PREFIXĪnd actual fonts are in $HOME/.fonts/TrueType. Users who intend to produce PDF do not need to convert TrueType Ghostscript can embed TrueType fonts into PDF documents. To continue the above example we assume that the PS font name for Foo-Bar-Bold.pfa is `XY-Foo-Bar-Bold' (the PS font name is stored in the `internalname' field in the `FBB' file), thus the following line should be added to `download'.Īdding TrueType fonts to groff for PDF documents This means that you should copy the default `download' file to the first directory in your font path and add your fonts there. Currently, due to a limitation in the PostSript ? device of groff (grops), only the first occurrence of this file in the font path is read. Note that groff doesn't use the AFM files (but it is a good idea to store them anyway).Ĥ) Register all fonts which must be downloaded to the printer in the `devps/download' file. ![]() See the `ENVIRONMENT' section in troff(1) which lists the actual value of the font path. An example is groff's built-in Times-Roman: The font family name is `T', and the groff font names are `TR', `TB', `TI', and `TBI'.ģ) Install both the groff font description files and the fonts in a `devps' subdirectory of the font path which groff finds. If you have a font family which comes with normal, bold, italic, and bold italic faces, it is recommended to use the letters `R', `B', `I', and `BI', respectively, as postfixes in the groff font names to make groff's `.fam' request work. Which converts the metric file `Foo-Bar-Bold.afm' to the groff font `FBB'. For all other font formats I suggest to use the `FontForge' font editor (available from ) which can convert most outline font formats.Ģ) Convert the AFM file to a groff font description file with the `afmtodit' program. If your font is in PFB format (such fonts normally have `.pfb' as the file extension), you might use groff's `pfbtops' program to convert it to PFA. Old PS printers might not support it (this is, they don't have a built-in TrueType ? font interpreter). This is a wrapper format for TrueType ? fonts. The very first characters in a PFA file look like this: This is either a PostScript ? Type 1 font in PFA format or a PostScript ? Type 42 font, together with an AFM file. The appropriate place is grops.man, with a proper reference in groff.man (and probably troff.man).ġ) Convert your font to something groff understands. The following should be done - is there a good guy whoĬonverts this to good English which a novice can understand? I think Werner Lemberg: There aren't instructions within groff which clearly say how ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |