APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS














(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



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

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






Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/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

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress