mirror of https://git.FreeBSD.org/doc.git
Fix path: s,/usr/local/shared,/usr/local/share,
PR: 255101 Reported by: Christos Margiolis <christos@christosmarg.xyz> Approved by: carlavilla (implicitly)
This commit is contained in:
parent
6f71dc766b
commit
6d2a97cf80
|
|
@ -144,8 +144,8 @@ For example:
|
|||
[source,shell]
|
||||
....
|
||||
Create a directory to contain the font files
|
||||
% mkdir -p /usr/local/shared/fonts/type1
|
||||
% cd /usr/local/shared/fonts/type1
|
||||
% mkdir -p /usr/local/share/fonts/type1
|
||||
% cd /usr/local/share/fonts/type1
|
||||
|
||||
Place the .pfa, .pfb and .afm files here
|
||||
|
||||
|
|
@ -262,7 +262,7 @@ So, to complete our example:
|
|||
....
|
||||
Make the font accessible to X11
|
||||
% cd /usr/X11R6/lib/X11/fonts/Type1
|
||||
% ln -s /usr/local/shared/fonts/type1/showboat.pfb .
|
||||
% ln -s /usr/local/share/fonts/type1/showboat.pfb .
|
||||
|
||||
Edit fonts.dir and fonts.scale, adding the line describing the font
|
||||
and incrementing the number of fonts which is found on the first line.
|
||||
|
|
@ -300,11 +300,11 @@ Using the font from the previous example, here is how to use it with Ghostscript
|
|||
[source,shell]
|
||||
....
|
||||
Put the font in Ghostscript's font directory
|
||||
% cd /usr/local/shared/ghostscript/fonts
|
||||
% ln -s /usr/local/shared/fonts/type1/showboat.pfb .
|
||||
% cd /usr/local/share/ghostscript/fonts
|
||||
% ln -s /usr/local/share/fonts/type1/showboat.pfb .
|
||||
|
||||
Edit Fontmap so Ghostscript knows about the font
|
||||
% cd /usr/local/shared/ghostscript/4.01
|
||||
% cd /usr/local/share/ghostscript/4.01
|
||||
% ex Fontmap
|
||||
:$a
|
||||
/Showboat (showboat.pfb) ; % From CICA /fonts/atm/showboat
|
||||
|
|
@ -317,10 +317,10 @@ Aladdin Ghostscript 4.01 (1996-7-10)
|
|||
Copyright (C) 1996 Aladdin Enterprises, Menlo Park, CA. All rights
|
||||
reserved.
|
||||
This software comes with NO WARRANTY: see the file PUBLIC for details.
|
||||
Loading Times-Roman font from /usr/local/shared/ghostscript/fonts/tir_____.pfb...
|
||||
Loading Times-Roman font from /usr/local/share/ghostscript/fonts/tir_____.pfb...
|
||||
/1899520 581354 1300084 13826 0 done.
|
||||
GS>Showboat DoFont
|
||||
Loading Showboat font from /usr/local/shared/ghostscript/fonts/showboat.pfb...
|
||||
Loading Showboat font from /usr/local/share/ghostscript/fonts/showboat.pfb...
|
||||
1939688 565415 1300084 16901 0 done.
|
||||
>>showpage, press <return> to continue<<
|
||||
>>showpage, press <return> to continue<<
|
||||
|
|
@ -361,7 +361,7 @@ Continuing with our example:
|
|||
Many .afm files are in Mac format... ^M delimited lines
|
||||
We need to convert them to UNIX(R) style ^J delimited lines
|
||||
% cd /tmp
|
||||
% cat /usr/local/shared/fonts/type1/showboat.afm |
|
||||
% cat /usr/local/share/fonts/type1/showboat.afm |
|
||||
tr '\015' '\012' >showboat.afm
|
||||
|
||||
Now create the groff font file
|
||||
|
|
@ -381,7 +381,7 @@ This can easily be determined from the groff font file as illustrated:
|
|||
[source,shell]
|
||||
....
|
||||
Create the .pfa font file
|
||||
% pfbtops /usr/local/shared/fonts/type1/showboat.pfb >showboat.pfa
|
||||
% pfbtops /usr/local/share/fonts/type1/showboat.pfb >showboat.pfa
|
||||
....
|
||||
|
||||
Of course, if [.filename]#.pfa# is already available, just use a symbolic link to reference it.
|
||||
|
|
@ -465,7 +465,7 @@ The funny upper/lower case is due to their being intended also for DOS shells.
|
|||
[.filename]#ttf2pf.ps# makes use of the others as upper case, so any renaming must be consistent with this.
|
||||
(Actually, [.filename]#GS_TTF.PS# and [.filename]#PFS2AFM.PS# are supposedly part of the Ghostscript distribution, but it is just as easy to use these as an isolated utility.
|
||||
FreeBSD does not seem to include the latter.)
|
||||
You also may want to have these installed to [.filename]#/usr/local/shared/groff_font/devps#(?).
|
||||
You also may want to have these installed to [.filename]#/usr/local/share/groff_font/devps#(?).
|
||||
|
||||
`afmtodit`::
|
||||
Creates font files for use with groff from ascii font metrics file.
|
||||
|
|
|
|||
Loading…
Reference in New Issue