![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Install additional fonts ? | vilius | AIX | 0 | 05-26-2008 09:12 PM |
| Downloading printer fonts on Redhat | rbn | Linux | 0 | 02-15-2006 04:57 PM |
| Fonts? | geek01 | UNIX for Dummies Questions & Answers | 1 | 05-10-2004 06:45 PM |
| Installing new fonts | kxchen_home | Linux | 3 | 02-23-2004 08:30 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Printer fonts
Hi,
I have a Barcode printer. It's defined as a remote printer on the system. The /etc/lp/interface/<printer> file is printing has a part that enables Hebrew printing. For some reason the Printer is printing in a very small font. I'll attach the interface file: Code:
#!/usr/bin/sh # /* @(#) $Revision: 72.3 $ */ #Note: These options must be preceded by "BSD" in the option argument. # ie. use "-oBSDh" to suppress banner page. # lp interface for remote spooling. # Options Recognized: # # -C class Take the following argument as a job # classification for use on the banner page. # # -J job Take the following argument as the job name # to print on the banner page. Normally, the # first file's name is used. # # -T title Use the next argument as the title used by # pr(UTIL) instead of the file name. -T is # ignored unless the -p option is specified. # # -i[numcols] Cause the output to be indented. If the next # argument is numeric, it is used as the number # of blanks to be printed before each line; # otherwise, 8 characters are printed. # # -kfont Specify a font to be mounted on font position # k, where k is from 1 to 4. # # -wnum Take the immediately following number to be # the page width for pr(UTIL). # # The following single letter options are used to notify the # line printer spooler that the files are not standard text # files. The spooling system uses the appropriate filters (if # the option is supported) to print the data accordingly. # These options are mutually exclusive. # # -c The files are assumed to contain data # produced by cifplot. # # -d The files are assumed to contain data from # tex (DVI format). # # -f Use a filter that interprets the first # character of each line as a standard FORTRAN # carriage control character. # # -g The files are assumed to contain standard # plot data as produced by the plot routines. # # -l Use a filter that suppresses page breaks. # # -n The files are assumed to contain data from # ditroff (device independent troff). # # -p Use pr(UTIL) to format the files. # # -t The files are assumed to contain data from # troff (cat phototypesetter commands). # # -v The files are assumed to contain a raster # image for devices such as the Benson Varian. # # -k The files are assumed to contain data from # Kerberized LPR clients and servers. # # -o The files are assumed to contain Postscript data # # -z The files are assumed to contain data from # the Palladium print system. # # Other single letter options: # # -h Suppress the printing of the banner page. # # Test for the filter program printer=`basename $0` if [ ! -x /usr/sbin/rlp ] then disable -r"can't execute /usr/sbin/rlp filter" $printer exit 1 fi requestid=$1 # Determine which options have been involked. BSDC="" BSDJ="" BSDT="" BSDi="" BSD1="" BSD2="" BSD3="" BSD4="" BSDw="" BSDformat="" BSDh="" for i in $5 do # remove the BSD from the option. eval ii='`echo $i | sed -e "s/\BSD//g"`' case "$i" in BSDC*) # Specify the job classification. BSDC=-$ii ;; BSDJ*) # Specify the job name. BSDJ=-$ii ;; BSDT*) # Specify the title for pr(UTIL) to use. BSDT=-$ii ;; BSDi*) # Cause the output to be indented. BSDi=-$ii ;; BSD1*) # Specify a font for font position 1. BSD1=-$ii ;; BSD2*) # Specify a font for font position 2. BSD2=-$ii ;; BSD3*) # Specify a font for font position 3. BSD3=-$ii ;; BSD4*) # Specify a font for font position 4. BSD4=-$ii ;; BSDw*) # The page width for pr(UTIL). BSDw=-$ii ;; BSDc) # Files contain data produced by cifplot. BSDformat=-$ii ;; BSDd) # Files contain data from tex (DVI format). BSDformat=-$ii ;; BSDf) # Files contain FORTRAN carriage control. BSDformat=-$ii ;; BSDg) # Files contain plot data from plot routines. BSDformat=-$ii ;; BSDl) # Files assume no page breaks. BSDformat=-$ii ;; BSDn) # Files contain data from ditroff. BSDformat=-$ii ;; BSDp) # Use pr(UTIL) to format the files. BSDformat=-$ii ;; BSDt) # Files contain data from troff. BSDformat=-$ii ;; BSDv) # Files contain a raster image. BSDformat=-$ii ;; BSDk) # Files contain Kerberized data. BSDformat=-$ii ;; BSDo) # Files contain Postscript data. BSDformat=-$ii ;; BSDz) # Files contain Palladium print system data. BSDformat=-$ii ;; nb) # Suppress the printing of the banner page. BSDh="-h" ;; BSDh) # Suppress the printing of the banner page. BSDh=-$ii ;; esac done shift; shift; shift; shift; shift # trans to hebrew.............................. tr "[\340-\372]" "[\200-\232]" <$1> /tmp/prt.$$ chmod 640 $1 mv /tmp/prt.$$ $1 /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh $1 ret=$? case $ret in 0) exit 0 ;; *) reason="error $ret returned" ;; esac disable -r"$reason" $printer exit 1 This is the file. Can anyone tell me how to increase the font size? added code tags for readability --oombera Last edited by oombera; 02-18-2004 at 08:18 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
Printer
The printer is a regular printer , and attached to the network with a HP jet direct card to the network.
It has a network IP address and it is configured correctly on the machine as a remote printer. The user is printing to it- but the font is to small... |
|
|||
|
Ok.... I know what I am about to tell you might seem weird... but.. hear me out...
I had a problem once.. where I had a laser printer connected to my network via a Jet Direct card that was Internal to the printer. In other words... my ethernet cable was plugged directly into an internal JetDirect card. It seems that on occasions.. passing printer commands through the interface script would have no effect on the printer. The font wouldn't change, nor would the paper trays switch..etc.. I contacted HP and I was told by HP.. that I needed to pass those commands via the parallel port. I purchased an external print server and located it near my printer. Configured my print server and installed the parallel cable between my print server and my printers parallel port.. It worked like a charm. I could NEVER get HP to tell me why this would only work this way. I can't say that it will solve your problem, but you might want to give it a shot.
__________________
:D |
|||
| Google UNIX.COM |