text2post font size


What is this stuff?

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

My Unix and Linux Troubleshooting E-Book will show you how to solve tough system problems!



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 :

cartoon
My Working for yourself E-Book will show you how to break free
from the 9 to 5 grind.



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















-
Google Friend Connect users can
comment on this page here


Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
264168 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.

Publishing your articles here

More:
       - Newsgroup




Unix/Linux Consultants


http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.


http://www.breakthru.com.au SCO (Openserver and Unixware), Unix, Solaris and Linux Consulting services including: Secure Networking Solutions; Linux based Firewalls; Backup Solutions; Secure Home to Office Network Setup; Phone, Remote and On-Site Support available - Satisfaction Guaranteed!


http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.



Twitter
  • Dec 4 07:16
    Being tired will cost me at Poker tonight but I don't see how I can squeeze in a nap.
  • Dec 4 04:06
    Wife had a nightmare at 2:00 AM; I never got back to sleep. Gave up at 4:00 and got up.




card_image








Change Congress