Re: PFONTC


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Grant Foraker on June 20, 2006 at 09:44:26:

In Reply to: PFONTC posted by francisco avalos on June 20, 2006 at 08:50:14:

Francisco:

Looks like you saw one of my earlier postings. Early on, when customers started replacing line printers with laser printers, I decided that the easiest way (for me) to get green bar reports on a laser printer was to make the Default Printer, Default Font-0 17cpi. Font-1 and Font-2 I set to 17cpi and 10cpi. For future use. This required no program changes:) COSW.INI typically looks like ...

[Printer Fonts]
Font-0=Lucida Console, 12, 17, 0, 6
Font-1=Lucida Console, 12, 17, 0, 6
Font-2=Lucida Console, 12, 10, 0, 6

These settings are reached in Comet via File/SetPrinter Font. Unless there's a special situation I only set up the Default printer. Any old line or dot matrix printers were defined as RAW. The windows fonts don't apply and everything printed they way it always did. With the exception of the FFCLOSE. Again no programming.

In part, my Comet.INI looks like ...

[PRINTERS]

Printer = LP1,W ,N,,\\SSASD00\HP LaserJet 4 Plus,,;
Printer = LP2,W ,N,,HP OfficeJet V40xi,,;
Printer = LP3,W ,N,,?,,;
Printer = LP4,W ,N,,Epson LX-300:RAW,FFCLOSE,;

Later, as I started to do Windows printer programs, I controlled the fonts from inside my program. I found that many programs only needed a slight font tweak. Say from 10cpi to 14cpi to fit in an expanded print line but 17cpi made the report look too squished to the left. So, I paste in the following to the COSW.INI so I could quickly switch fonts inside a report.

Font-11=Lucida Console, 12, 11, 0, 6
Font-12=Lucida Console, 12, 12, 0, 6
Font-13=Lucida Console, 12, 13, 0, 6
Font-14=Lucida Console, 12, 14, 0, 6
Font-15=Lucida Console, 12, 15, 0, 6
Font-16=Lucida Console, 12, 16, 0, 6
Font-17=Lucida Console, 12, 17, 0, 6
Font-18=Lucida Console, 12, 18, 0, 6
Font-19=Lucida Console, 12, 19, 0, 6
Font-20=Lucida Console, 12, 20, 0, 6

I've been able to keep the printer/font matrix at a reasonable size and mostly printer independent. If a customer replaces an older laser or inkjet printer with a high speed model, COSW.INI doesn't care and I only have to change the UNC for the printer in the Comet.INI.

I've added a check, at the start of each program that does any Windows print fuction, to prevent the user from printing to the old Comet spooler or to a RAW printer.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]