Date: Tue, 20 Apr 2021 04:22:50 GMT From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: 6d2a97cf80 - main - Fix path: s, /usr/local/shared, /usr/local/share, Message-ID: <202104200422.13K4MoST028632@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lwhsu (ports, src committer): URL: https://cgit.FreeBSD.org/doc/commit/?id=6d2a97cf80b050c40723952aff9b3abe3c7db8a8 commit 6d2a97cf80b050c40723952aff9b3abe3c7db8a8 Author: Li-Wen Hsu <lwhsu@FreeBSD.org> AuthorDate: 2021-04-20 04:21:23 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2021-04-20 04:21:23 +0000 Fix path: s,/usr/local/shared,/usr/local/share, PR: 255101 Reported by: Christos Margiolis <christos@christosmarg.xyz> Approved by: carlavilla (implicitly) --- .../content/en/articles/fonts/_index.adoc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/documentation/content/en/articles/fonts/_index.adoc b/documentation/content/en/articles/fonts/_index.adoc index 586622ef38..498371dfcb 100644 --- a/documentation/content/en/articles/fonts/_index.adoc +++ b/documentation/content/en/articles/fonts/_index.adoc @@ -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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104200422.13K4MoST028632>