From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5422 invoked from network); 8 Dec 2020 16:48:21 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 8 Dec 2020 16:48:21 -0000 Received: from mout.gmx.net ([212.227.17.20]) by ewsd; Tue Dec 8 11:46:21 -0500 2020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607445969; bh=jGpDr1ck8zzFyDPHh0WOmoIOOFjkABhB1vbDE/JUecI=; h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References; b=aNpPtNavhfBrKICGx1C5k9dQnKz5lbC9zwbGjVNtsWikcpN08CLOMyAaKQ7VT4nI5 XkLJXQfs0DmMHSQj8Kx1xJjMmcMnhbytMGMVfjxx2FCZSEXpOXkqgJFN3Js3SI0mV3 Oibu38kM5hcfp1dG6cdpIlx6TednoXoiGOE32bKw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost ([141.5.16.215]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MAOJP-1ksPZD3dZj-00Bu9K; Tue, 08 Dec 2020 17:46:08 +0100 Date: Tue, 8 Dec 2020 17:46:06 +0100 From: Eckard Brauer To: 9front@9front.org, Stanley Lieber Message-ID: <20201208174606.7a2abe0c@gmx.de> In-Reply-To: <725EFB20-5D33-4560-AA85-991B47F931D0@stanleylieber.com> References: <35E7C6F8-1035-4983-9663-D9926EB6CC37@stanleylieber.com> <725EFB20-5D33-4560-AA85-991B47F931D0@stanleylieber.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAAXNSR0IArs4c6QAAAllJREFUWMPtmN11o0AMRi/ZrWCmBakGapgakhbWxZAaUoNqwC1INaiGfcBJgNixN46zfmAeOBxbB935Rn/QyeDc03rgztYGtAFtQBvQBrQB/RiQwg70foAagN+LQgrIAUd/EkiP+Zt+kfDg+5l+f6YB7id8CcSSZG53zUF2bxOjwtBAThjGEU/ha4PV8tMP87MKCW72LLhOeAIIqjNCEdG1UB+1i/MyBEAY4Fgs4Lr5TK14I8RM3eceYxLQQUGm49GJEFhBv170Qq6duc2Mu49DfsPVrLl9Gj1rmWK2LWttGXyuK2lfVQlkFaZHgtrQaCAqNugJCCJmRyZvNt52phLocpfNZingFwb1kcT+INWrGDEBeCx1aH+e285vlPYOjkZTRLGhzf/bibTdwcrCB9cIEDxo19ahX+Xw6MXK2c1YtfR9FqXLLjOBkZJj5CgRSdZekWZVS2YtZKVS8/o69Hm99ikHPSQMdwUZNBAsjGYq76X0UDKFdSR9N9AhAd8yRHEITjn2YzX8ihg6FekThbV2Ll++2N/+odvLcvc3+kbxcKEw721fkVt+LzlzZEODwULFFnBxO6Djaf9ekJ+Hmi+o7lqvmkqQ1BJUkqvS+4tAVTMildACtWdv1V8gNUfJqJUe8luxzgA9gZJmo8dYyPRIy+yoPZnZ56hp1H0PCUm9OVCSWjstZZ9dkhEelW7qwRYlsnYJlBxrRla5nuksUE0PyOwfx5d99E/RP46BZXS17LOQJTsyoSSpUa8dry+o1FO313a8FvtyetV2e6DtVXoD2oA2oA3ov66/BWQZa7j3R/gAAAAASUVORK5CYII= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:HYEBUaA5TLPF3+vOIK8G96LinvXlmdO5JfxeiQ8Zepo78fq7NLq uaHSW26e3WgyWIForXRhIHHx3y7uL8SB6hRMwBfnwsO7bYu0Ul4GJxj/3J/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== List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shared content-addressed standard database HTTP over TOR map/reduce component-oriented grid element controller Subject: Re: [9front] Re: recent changes Reply-To: 9front@9front.org Precedence: bulk > On December 8, 2020 11:01:48 AM EST, Stanley Lieber > wrote: [...] =20 >=20 > also, i seem to have somehow misplaced my instructions for adding new > fonts to troff/postscript. anyone recall who figured this out for us? >=20 > sl Maybe you're asking for a topic just 3 years back (Dec 13, 2017, some responses from Travis Moore). See below for 1st part. Best regards, E. From: Travis Moore Date: Wed, 13 Dec 2017 13:07:30 +1300 Subject: Re: [9front] WANTED: instructions for adding fonts to troff > I'd like to expand the font options for troff in my installation. > How might this be accomplished? I've kept your mail in my inbox for nearly a year because I'd been meaning to look into this. I finally got around to it and figured out a method of sorts: 1. Obtain postscript versions of the font. The file with the font data has the extension .pfa or .pfb The file with the font metrics has the extension .afm I tested on the following materials: http://mirrors.ctan.org/fonts/urw/garamond.zip https://www.math.utah.edu/~beebe/fonts/urwfonts-1.0.zip https://www.math.utah.edu/~beebe/fonts/utopia-1.0.zip https://www.math.utah.edu/~beebe/fonts/charter-1.0.zip Apparently there are tools to convert from other formats. 2. Convert the font metrics to a troff font description. The attached awk script is something I hacked up to do this: convpsfont ugmr8a.afm GA # URW Garamond =09 This creates a file GA which should look something like this: name GA fontname GaramondNo8-Reg spacewidth 26 charset ! 26 2 33 " 42 2 34 &c... Choose a name not in conflict with those in /sys/lib/troff/font/devutf/ Check the contents of this file makes sense; I haven't tested many fonts and my script may need adjustment or the output may need to be tweaked by hand. The troff font format is described in: /sys/doc/troff.ps!32 The .afm format can be found at: http://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5004.AFM_Spec.p= df Put the resulting file GA in /sys/lib/troff/font/devutf/ or else use troff's -F flag to point to the dir that holds it. You can now rm the .afm file or else keep it with its .pfa/.pfb 3. Let postscript see the font. Put the font (.pfa/.pfb) in /sys/lib/postscript/font/ I put mine in a subdir called useradded. Add an entry at the bottom of /sys/lib/postscript/font/fontmap: % fonts added by user GaramondNo8-Reg useradded/ugmr8a.pfb Create a file called /sys/lib/postscript/troff/GA: 0x0000 0x00ff GaramondNo8-Reg 0x2010 0x2044 GaramondNo8-Reg 0xfb00 0xfb06 GaramondNo8-Reg You can use other fonts for ranges missing from your font. 4. Let ghostscript see the font. cd /sys/lib/ghostscript/font && mk 5. Test. echo '.sp 1i .ft GA .ps 14 Pack my box with five dozen liquor jugs. =C3=B8 =C3=9F =C3=A1 =C3=A4 =C3=A0 =C3=A6 =C2=BC =C2=BD =C2=BE =C2=A9 = =C2=B6 =C2=A7' | troff | page ps2pdf will embed the font and make it printable everywhere. Hope this is useful to someone, Travis