🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #5303

Re: Troff font names for PostScript fonts

#5303
From: Stephen Frede
Date: Wed, 12 Oct 1988 00:21
345 lines
12798 bytes
In article <570@ssp15.idca.tds.philips.nl> jos@idca.tds.PHILIPS.nl (Jos Vos) writes:
> Can anybody give me some suggestions about the two-letter fontnames for
> [di]troff that I should assign to the 35 built-in fonts of the Apple
> LaserWriter IINTX? Of course I can define some (sometimes even reasonable)
> names, but I want to use standards as much as possible.

A suggestion was posted to the net some time ago for a naming
philosophy. This was basically to choose a 2-character name for a font
family, and then use upper and lower case variations to represent
different members of the family. The original proposal used both letters
lowercase to indicate the standard (non-bold, non-italic) member of the
family. Unfortunately, the vast majority of fonts already in use are all
uppercase for the standard member. So my variation is to use a lowercase
initial letter to indicate italic (or oblique) and a lowercase second
letter to indicate bold. The following is a copy (more or less) of the
FONTMAP file distributed with Softway's commercial version (dpscript) of the
ditroff->postscript translator (tpscript) that was posted to the net
(both a long time ago by me, and more recently by someone else).
This file may of course be edited by the user of the software, but this
is the default and indicates most of what I've discovered and recommend
for font names. I'd love to see some sort of a standard, and look
forward to seeing what other people use, and any comments anyone may
have.


# This file instructs dpscript (the troff back end filter for PostScript)
# on where to find a particular font that troff asks for.
#
# Format is 3 columns:
#
#	troff-font-name		font-source	font-or-file-name
#
# where
#	troff-font-name is the 1 or 2 character troff font name
#	font-source is one of:
#		resident		The font is built-into the printer
#		postscript		User-defined postscript font
#		raster			DWB raster (bitmap) font
#		vfont			BSD vfont raster (similar to above)
#		synonym			Another name for some other font
#		outline			Outline form of a resident font
#					(may also work with Adobe fonts)
#
#	font-or-file-name is a PostScript font name for resident fonts,
#			a filename containing the data for user-defined,
#			raster and vfont fonts,
#			and a troff font name for synonyms
#

# The convention I have used for naming font styles is to choose a unique
# two character (upper case) name for the base family, and then use
# variations in the case of the name to indicate alternative styles
# as shown:
#		AA	Roman
#		Aa	Bold (or Demi, etc.)
#		aA	Italic (or Oblique)
#		aa	Bold Italic
# Font families that have more than these four style variations
# (eg includes Bold and Very Bold), are rare and in these cases, we just
# have to make up another name. Also, try to avoid family base names ending
# in 'O' as I have used names ending in 'o' for the outline fonts.
#
# Also, remember that P is an illegal troff font name (means Previous)

# The following is correct for the Apple LaserWriter and most other
# PostScript devices developed by Adobe.
# If your device does not have these fonts, then change the
# names appropriately.

# The following are resident on an Apple LaserWriter
# The names R, I, B and BI are in such common use that they should all be
# defined somewhere. They are traditionally "times", but in practice
# just mean the 4 forms of your favourite standard font.

R	resident	Times-Roman
I	resident	Times-Italic
B	resident	Times-Bold
BI	resident	Times-BoldItalic

# Courier family
# No outlined fonts, so trailing 'O' in name is ok.
# Many of these names apply to a generic constant-width font.
CO	resident	Courier
C	synonym		CO
CW	synonym		CO		# Constant Width (synonym for Courier)
CM	synonym		CO		# Courier monospace (used by AT&T doco)
Co	resident	Courier-Bold
CB	synonym		Co
Cw	synonym		Co
BM	synonym		Co	# Bold Monospaced (?) Used by AT&T doco
BB	synonym		Co	# AT&T bold constant width again I think
cO	resident	Courier-Oblique
CI	synonym		cO
cW	synonym		cO
co	resident	Courier-BoldOblique
CX	synonym		co
cw	synonym		co

# Helvetica family
HE	resident	Helvetica
H	synonym		HE
HR	synonym		HE
He	resident	Helvetica-Bold
#HB	synonym		He			# HB used for hebrew
hE	resident	Helvetica-Oblique
HO	synonym		hE
he	resident	Helvetica-BoldOblique
HX	synonym		he
S	resident	Symbol

# The following are additionally available on an Apple LaserWriter Plus,
# as well as most other PostScript printers.
# Comment them out if you have an early Apple LaserWriter.

# Palatino family
PA	resident	Palatino-Roman
Pa	resident	Palatino-Bold
pA	resident	Palatino-Italic
pa	resident	Palatino-BoldItalic

# Avant Garde family
AG	resident	AvantGarde-Book
aG	resident	AvantGarde-BookOblique
Ag	resident	AvantGarde-Demi
ag	resident	AvantGarde-DemiOblique

# Bookman family
BK	resident	Bookman-Light
bK	resident	Bookman-LightItalic
Bk	resident	Bookman-Demi
bk	resident	Bookman-DemiItalic

# Helvetica Narrow family
HN	resident	Helvetica-Narrow
Hn	resident	Helvetica-Narrow-Bold
hN	resident	Helvetica-Narrow-Oblique
hn	resident	Helvetica-Narrow-BoldOblique

# New Century Schoolbook family
NS	resident	NewCenturySchlbk-Roman
Ns	resident	NewCenturySchlbk-Bold
nS	resident	NewCenturySchlbk-Italic
ns	resident	NewCenturySchlbk-BoldItalic

# Zapf Chancery family
zC	resident	ZapfChancery-MediumItalic
ZC	synonym		zC		# because it's the only one

# There are too many characters in ZapfDingbats to map
# them all to ascii, and making up 2 character names for them
# all is beyond me, so we split it into two halves and map
# them each into ascii. See the width and code files (Z0 and Z1).
Z0	resident	ZapfDingbats
Z1	resident	ZapfDingbats

# User PostScript defined fonts
# The appropriate source files exist in this directory

S2	postscript	ps_fonts/S2.ps		# Special bracket character font
FA	postscript	ps_fonts/Faces.ps	# People's faces (48x48x1)
#	You won't get these with your distribution
SW	postscript	ps_fonts/SW.ps		# Softway characters
SF	postscript	ps_fonts/SF.ps		# Stephen's miscellaneous characters

# Outline fonts

# Use Bold (or Demi, etc.) as the base font to outline for best results.
# Link the width tables of the base font to that for the outline
#	eg: ln B.out Ro.out
# [Actually, this does not give perfect results - I'll have to make some
# width tables especially for these fonts - one day].
# I have used a lower case initial letter to indicate italic or oblique
# Some names are non-mnemonic - I gave up.
# Note that resident fonts designed for stroking (eg Courier) can't be
# made into outline in this way.

Ro	outline		Times-Bold		# Roman outline
ro	outline		Times-BoldItalic	# Italic outline
Io	synonym		ro
Ho	outline		Helvetica-Bold		# Helvetica outline
ho	outline		Helvetica-BoldOblique	# Helvetica Oblique outline

# Outline fonts for LaserWriter Plus
Po	outline		Palatino-Bold		# Palatino outline
po	outline		Palatino-BoldItalic	# Palatino Italic outline
Bo	outline		Bookman-Demi		# Bookman outline
bo	outline		Bookman-DemiItalic	# Bookman Italic outline
Ao	outline		AvantGarde-Demi		# Avant Garde outline
ao	outline		AvantGarde-DemiOblique	# Avant Garde Oblique outline
So	outline		NewCenturySchlbk-Bold	# New Century Schoolbook outline
so	outline		NewCenturySchlbk-BoldItalic	# NCS Italic outline
No	outline		Helvetica-Narrow-Bold	# Helvetica Narrow outline
no	outline		Helvetica-Narrow-BoldOblique	# H-N Oblique outline
Zo	outline		ZapfDingbats		# Zapf Dingbats outline

# Hershey fonts
# These are actually implemented at the moment by converting each font
# to PostScript in advance, rather than translating from the hershey format
# as distributed on Usenet at runtime.

ge	postscript	hershey/ge_hersh.ps	# Gothic English
Ge	postscript	hershey/Ge_hersh.ps	# Gothic English Bold
gE	postscript	hershey/gE_hersh.ps	# Gothic English Oblique
gg	postscript	hershey/gg_hersh.ps	# Gothic German
Gg	postscript	hershey/Gg_hersh.ps	# Gothic German Bold
gG	postscript	hershey/gG_hersh.ps	# Gothic German Oblique
gi	postscript	hershey/gi_hersh.ps	# Gothic Italian
Gi	postscript	hershey/Gi_hersh.ps	# Gothic Italian Bold
gI	postscript	hershey/gI_hersh.ps	# Gothic Italian Oblique
hp	postscript	hershey/hp_hersh.ps	# Plain
Hp	postscript	hershey/Hp_hersh.ps	# Plain Bold
hP	postscript	hershey/hP_hersh.ps	# Plain Oblique
sc	postscript	hershey/sc_hersh.ps	# Script Complex
Sc	postscript	hershey/Sc_hersh.ps	# Script Complex Bold
sC	postscript	hershey/sC_hersh.ps	# Script Complex Oblique
ss	postscript	hershey/ss_hersh.ps	# Script Simplex
Ss	postscript	hershey/Ss_hersh.ps	# Script Simplex Bold
sS	postscript	hershey/sS_hersh.ps	# Script Simplex Oblique
ht	postscript	hershey/ht_hersh.ps	# Triplex
Ht	postscript	hershey/Ht_hersh.ps	# Triplex Bold
hT	postscript	hershey/hT_hersh.ps	# Triplex Italic
HT	postscript	hershey/HT_hersh.ps	# Triplex Bold Italic

# Raster fonts typically available with DWB (originally for the imagen)
# Where they are available in several point sizes, use the largest

#R	raster		R.16
#I	raster		I.16
#B	raster		B.16
#BI	raster		BI.12
#S	raster		S.24
# Helvetica family
#H	raster		H.18
#HB	raster		HB.14
#HI	raster		HI.18
HK	raster		HK.18	# Helvetica Very Bold
#CW	raster		CW.16	# Constant Width
OE	raster		OE.16	# Old English
B1	raster		B1.10
B2	raster		B2.10
B3	raster		B3.10
B4	raster		B4.10
M1	raster		M1.12
M2	raster		M2.10
M3	raster		M3.10
MB	raster		MB.10
MI	raster		MI.10
MK	raster		MK.10
MM	raster		MM.10
SV	raster		SV.14
CH	raster		CH.14	# Chess

# Use the following if you don't have the extra PostScript resident fonts.
# Palatino family
#PA	raster		PA.14	# Palatino
#PB	raster		PB.14	# Palatino Bold
#PI	raster		PI.14	# Palatino Italic?
#PO	raster		PO.16	# Palatino Oblique?
#PX	raster		PX.12	# Palatino Bold Italic

# The following 3 rasters are sus
E	raster		E.14
EB	raster		EB.14
EI	raster		EI.14

#	Berkeley vfont

#R	vfont	/usr/lib/vfont/R.28
#R	vfont	/usr/lib/vfont/R.36	# tops cut off?
#B	vfont	/usr/lib/vfont/B.28
#B	vfont	/usr/lib/vfont/B.36	# tops cut off?
#I	vfont	/usr/lib/vfont/I.36
#I	vfont	/usr/lib/vfont/I.sr.36	# ?

# Basker family
Ba	vfont	/usr/lib/vfont/basker.b.12
bA	vfont	/usr/lib/vfont/basker.i.12
BA	vfont	/usr/lib/vfont/basker.r.12

# Bodoni family
Bd	vfont	/usr/lib/vfont/bodoni.b.10
bD	vfont	/usr/lib/vfont/bodoni.i.10
BD	vfont	/usr/lib/vfont/bodoni.r.10

# CM family - Computer Modern?
Cm	vfont	/usr/lib/vfont/cm.b.12
cM	vfont	/usr/lib/vfont/cm.i.12
#CM	vfont	/usr/lib/vfont/cm.r.12

# Delegate family
DE	vfont	/usr/lib/vfont/delegate.r.12
De	vfont	/usr/lib/vfont/delegate.b.12
#De	vfont	/usr/lib/vfont/delegate.b.12.
dE	vfont	/usr/lib/vfont/delegate.i.12

# Gacham family
GA	vfont	/usr/lib/vfont/gacham.r.10
Ga	vfont	/usr/lib/vfont/gacham.b.10
gA	vfont	/usr/lib/vfont/gacham.i.10

# Meteor family
ME	vfont	/usr/lib/vfont/meteor.r.12
Me	vfont	/usr/lib/vfont/meteor.b.12
mE	vfont	/usr/lib/vfont/meteor.i.8

# Nonie family (note: 'No' conflicts with Helvetica Narrow Outline)
Nn	vfont	/usr/lib/vfont/nonie.b.12
nN	vfont	/usr/lib/vfont/nonie.i.12
NN	vfont	/usr/lib/vfont/nonie.r.12

# Times family
Ti	vfont	/usr/lib/vfont/times.b.10
TI	vfont	/usr/lib/vfont/times.r.10
ti	vfont	/usr/lib/vfont/times.s.10

# Clarendon family
#CL	?	/usr/lib/vfont/clarendon.14.c
CL	vfont	/usr/lib/vfont/clarendon.18
#

Oe	vfont	/usr/lib/vfont/oldenglish.18		# Old English
PI	vfont	/usr/lib/vfont/pip.16
PL	vfont	/usr/lib/vfont/playbill.10
SR	vfont	/usr/lib/vfont/script.18
SH	vfont	/usr/lib/vfont/shadow.16
SI	vfont	/usr/lib/vfont/sign.22
ST	vfont	/usr/lib/vfont/stare.r.16
UG	vfont	/usr/lib/vfont/ugramma.10
CD	vfont	/usr/lib/vfont/countdown.22
FX	vfont	/usr/lib/vfont/fix.14
H1	vfont	/usr/lib/vfont/h19.10	# ?
BL	vfont	/usr/lib/vfont/bocklin.28
MO	vfont	/usr/lib/vfont/mona.24

# Misc foreign language character sets
GK	vfont	/usr/lib/vfont/greek.10
HB	vfont	/usr/lib/vfont/hebrew.36
CY	vfont	/usr/lib/vfont/cyrillic.12

# Misc non-ascii character sets
GR	vfont	/usr/lib/vfont/graphics.14
AP	vfont	/usr/lib/vfont/apl.10
#S?	vfont	/usr/lib/vfont/S.11
#S?	vfont	/usr/lib/vfont/S.12
Ch	vfont	/usr/lib/vfont/chess.18
Technical Details
Message-ID: <811@softway.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!munnari!otc!softway!stephenf
References: <570@ssp15.idca.tds.philips.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!munnari!otc!softway!stephenf
From: stephenf@softway.oz (Stephen Frede)
Newsgroups: comp.text,comp.lang.postscript
Subject: Re: Troff font names for PostScript fonts
Keywords: DWB troff ditroff PostScript LWIINTX
Message-ID: <811@softway.oz>
Date: 12 Oct 88 00:21:25 GMT
References: <570@ssp15.idca.tds.philips.nl>
Reply-To: stephenf@softway.oz (Stephen Frede)
Organization: Softway Pty Ltd, Sydney, Australia
Lines: 345