🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #4460

Re: help with fonts & troff

#4460
From: hapke
Date: Tue, 23 Feb 1988 14:33
24 lines
1293 bytes
If you want to assign symbolic names to troff fonts, you can use a troff
string define IF you have device-independent troff.  You will need to test
the value of the .T string and define the string accordingly.  At our site,
we have a Dataproducts PostScript printer and an Imagen.  I use this code to
handle the different names for the Courier font:

	.\" Ef is example font (Courier), which is used in code displays.
	.\" If the string .T is 300, we are on the Imagen and Courier is L.
	.\" If the string .T is psc, we are on the Dataproducts and it is C.
	.if t .if '\*(.T'300' .ds Ef L
	.if t .if '\*(.T'psc' .ds Ef C
	.DS
	\f\*(Ef
	main(argv, argc)
               .
	       .
	\fR
	.DE
	
Remember that this works only for device-independent troff.

Warren Hapke, Gould CSD-Urbana
  inhp4!uiucdcs!ccvaxa!hapke
Technical Details
Message-ID: <29400007@ccvaxa>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!ccvaxa!hapke
References: <7088@agate.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!ccvaxa!hapke
From: hapke@ccvaxa.UUCP
Newsgroups: comp.text
Subject: Re: help with fonts & troff
Message-ID: <29400007@ccvaxa>
Date: 23 Feb 88 14:33:00 GMT
References: <7088@agate.BERKELEY.EDU>
Lines: 23
Nf-ID: #R:agate.BERKELEY.EDU:7088:ccvaxa:29400007:000:813
Nf-From: ccvaxa.UUCP!hapke    Feb 23 08:33:00 1988