🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6609

Re: AT&T DWB2.0 question

#6609
From: Vidiot
Date: Thu, 21 Dec 1989 17:56
55 lines
3136 bytes
In article <678@elan.elan.com> jlo@elan.elan.com (Jeff Lo) writes:
<In article <323@vidiot.UUCP> brown@vidiot.UUCP (Vidiot) writes:
<>I currently have MicroPort's version of AT&T's Documentor's Workbench 2.0.
<>Is it true that DWB is imited to the loading of 10 font positions?  I tried
<>doing a .fp 11 and 12 (with appropriate fonts names) and the PostScript output
<>showed that they both were assigned to position #1.  Not good.  I changed them
<>to 7 and 8 and everything is just fine.
<>
<>If this is really true, then I suppose I can play games by shifting fonts
<>in and out as required.
<
<There are a few problems with doing this.  The first is that the stock
<DWB 2.0 troff code only allocates (as global arrays) enough space for 10
<mounted fonts.  You can actually mount more than 10 if you set up your
<DESC font description file right, but the stock troff doesn't do any
<bounds checking and ends up writing font data all over the place.  This
<leads to all sorts of fun.  I also seem to remember something about
<problems trying to select a font position greater than 9 with the \fN
<construct, but I'm not as sure about this one.  Fonts are also
<automatically temporarily mounted on position 0 if you call up a font
<which is not mounted, but there are some bugs with this in certain cases
<also.  You're probably best off only mounting on positions 1-8, leaving
<position 9 for the special font.

By shifting fonts in and out I meant that maybe on a page I need Helvetica
Narrow and not Helvetica Bold Italic, so I would .fp 8 Hn.  Troff allows me
to do that just fine.  So, I don't understand the problem.

The DESC file that I have does (in PostScript output):

1(NewCenturySchlbk-Roman)xf 1 f
2(NewCenturySchlbk-Italic)xf 2 f
3(NewCenturySchlbk-Bold)xf 3 f
4(NewCenturySchlbk-BoldItalic)xf 4 f
5(Helvetica)xf 5 f
6(Helvetica-Bold)xf 6 f
7(Courier)xf 7 f
8(Courier-Bold)xf 8 f
9(Symbol)xf 9 f
10(DIThacks)xf 10 f

Actually, the Times-Roman fonts are in 1 -> 4, but I do a -F NewCentury.  In
any event, I start off by changing fonts seven and eight with Helvetica Italic
and Helvetica Bold Italic, which shows up as PostScript code after the page
starts.

As you can see, nine and ten are used for the special character fonts.  So,
since DWB2.0 only allows ten fonts, I will have to work within the first eight.
I will actually only change five -> eight, since one -> four contain my main
working fonts.
-- 
                harvard\     att!nicmad\
Vidiot            ucbvax!uwvax..........!astroatc!vidiot!brown
                rutgers/  decvax!nicmad/
        ARPA/INTERNET: <@spool.cs.wisc.edu,@astroatc:brown@vidiot>
Technical Details
Message-ID: <345@vidiot.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!uwvax!astroatc!vidiot!brown
References: <323@vidiot.UUCP> <678@elan.elan.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!uwvax!astroatc!vidiot!brown
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.text
Subject: Re: AT&T DWB2.0 question
Message-ID: <345@vidiot.UUCP>
Date: 21 Dec 89 17:56:09 GMT
References: <323@vidiot.UUCP> <678@elan.elan.com>
Reply-To: brown@vidiot.UUCP (Vidiot)
Distribution: na
Organization: Vidiot's Hangout
Lines: 55