From owner-dev-commits-doc-all@freebsd.org Tue Apr 20 04:22:51 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0BA565E33CD for ; Tue, 20 Apr 2021 04:22:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FPVsQ6wTBz3kdk; Tue, 20 Apr 2021 04:22:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D591A3DCC; Tue, 20 Apr 2021 04:22:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13K4MoH4028633; Tue, 20 Apr 2021 04:22:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13K4MoST028632; Tue, 20 Apr 2021 04:22:50 GMT (envelope-from git) Date: Tue, 20 Apr 2021 04:22:50 GMT Message-Id: <202104200422.13K4MoST028632@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Li-Wen Hsu Subject: git: 6d2a97cf80 - main - Fix path: s, /usr/local/shared, /usr/local/share, MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6d2a97cf80b050c40723952aff9b3abe3c7db8a8 Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2021 04:22:51 -0000 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 AuthorDate: 2021-04-20 04:21:23 +0000 Commit: Li-Wen Hsu CommitDate: 2021-04-20 04:21:23 +0000 Fix path: s,/usr/local/shared,/usr/local/share, PR: 255101 Reported by: Christos Margiolis 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 to continue<< >>showpage, press 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.