If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Sat Nov 11 10:02:13 2000
Path: news.randori.com!newsfeeder.randori.com!news-hub.cableinet.net!diablo.netcom.net.uk!netcom.net.uk!dispose.news.demon.net!demon!news.demon.co.uk!demon!colonyuk.demon.co.uk!user
From: simon at ccomms dot demon dot co dot uk (Simon Hobson)
Newsgroups: comp.unix.sco.misc
Subject: Re: text2post - changing default font size?
Date: Sat, 11 Nov 2000 12:14:15 +0000
Message-ID: <B632E8979668A98B4@mac-simon-h.colony.com>
References: <B0DM5.523$dy7.559237301@news2.pvt.primus.ca>
NNTP-Posting-Host: colonyuk.demon.co.uk
X-NNTP-Posting-Host: colonyuk.demon.co.uk:158.152.173.186
X-Trace: news.demon.co.uk 973944853 nnrp-07:22714 NO-IDENT colonyuk.demon.co.uk:158.152.173.186
X-Complaints-To: abuse@demon.net
Lines: 47
Xref: news.randori.com comp.unix.sco.misc:68570
X-Mozilla-Status: 8011
X-Mozilla-Status2: 00000000
In article <B0DM5.523$dy7.559237301@news2.pvt.primus.ca>,
"Dean Northam" <alltemp@globalserve.net> wrote:
>Does anyone know if it is possible in sco openserver 5.05v3.24 to change the
>size of the fonts (and possible the lines per inch) using the text2post
>filter??? Trying to get the font and line counts to match a dot matrix
>printer.
I sat down a while ago and made some MAJOR changes to the SCO postscript
filter, just as you I wanted to effectively have 'laser lineprinters'.
I found some problems with the form feed processing (any text immediately
after a form feed was not printed) which I fixed, and added the option of
passing command line options for font, fontsize, line spacing, top and left
margins etc. I also added support for printer specific options such as
duplexing, hole punching, and stapling - my nearest laser printer happens
to be a Minolta 62ppm digital copier with ALL the trimmings ;-))
The code segment below shows how I fixed the form-feed problem :
port_proc()
{
awkprog="BEGIN { line=1 }
(line>$LPP) { line=1; print \"Page\" }
/\f/ { nff=split(\$0, lines, \"^L\")
for (i=1; i<nff; i++) {
print \"(\" lines[i] \") Line\" ;
print \"Page\"; line=1 }
print \"(\" lines[nff] \") Line\" ; line++ ;
next }
{ print \"(\" \$0 \") Line\"; line++ }
END { print \"%%Trailer\"; print \"pagedirty {showpage}
if gr
estore\" } "
expand | sed 's/[\\()]/\\&/g' | $IPFILTER | awk "$awkprog"
echo "grestore"
}
I can email you the whole file if you wish, just drop me a line at
shobson@colony.com
Simon
Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)
| Views for this page | ||||
|---|---|---|---|---|
| Today | This Week | This Month | This Year | Overall |
| 2 | 6 | 4 | 168 | 1,189 |
/Bofcusm/731.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Add your comments
comment on this page here