Sponsored Content
Full Discussion: Printer fonts
Top Forums UNIX for Dummies Questions & Answers Printer fonts Post 15338 by sunbird on Wednesday 13th of February 2002 04:03:27 AM
Old 02-13-2002
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

Smilie Smilie Smilie
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 12:18 PM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Fonts?

NEWBIE HERE...by default, where are the font files located (ttf's) (1 Reply)
Discussion started by: geek01
1 Replies

2. Linux

know I do for to printer in printer deskjet 80colun

I want to print some thing in HP Deskjet 692.? (1 Reply)
Discussion started by: edvaldo
1 Replies

3. IP Networking

How do you send printer codes to an IP printer

We were printing to a serial laser printer with all the HP codes to generate a form (i.e. lines, boxes, etc.) Thus the file is filled w/ control codes. We are switching to an IP printer and we can no longer print directly to the device (i.e. cp text /dev/tty11). It looks like we have to use the lp... (2 Replies)
Discussion started by: jeffbugfree
2 Replies

4. Red Hat

Downloading printer fonts on Redhat

I want to have a script that will download a soft font to a printer so that any one may run it when the printer is turned off then on. What would be the easiest way to do that? Linux Redhat. Thank you Smokey (0 Replies)
Discussion started by: rbn
0 Replies

5. Solaris

Configuring Printer with Printer Manager

Hi All, I am trying to configure printer in solaris 10 with the help of print manager. There is no printer attached to my system, ia m doing it for test purpose. However I am unable to do so coz its pops up window - Heading as error with option as dismiss and cancel. Kindly help as I am... (3 Replies)
Discussion started by: kumarmani
3 Replies

6. AIX

Check printer queue on Windows printer server

Hello Let me first give a small overview of the setup. All printers are connected to Windows 2000 servers. There are a lot of UNIX (AIX & HP-UX) servers as well which have SAP running. I'm working on a script to add printers to a specified SAP instance. I want to verify the user input (to... (0 Replies)
Discussion started by: NielsV
0 Replies

7. AIX

Generic Printer giving garbage fonts in Arabic

Generic Printer giving garbage fonts in Arabic ! Guy's I have confgured this printer in AIX 6.1 by the following steps ... Smitty Print Spooling AIX Print Spooling Add a Print Queue I Selected from the box this kind hpJetDirect Network Printer (HP JetDirect) then ... (7 Replies)
Discussion started by: ITHelper
7 Replies

8. Linux

Find printer location and printer type

Hi, Is it possible to find the printer location and printer type (whether it is local or network) using command in Linux ? Thanks in advance. (1 Reply)
Discussion started by: forumguest
1 Replies
All times are GMT -4. The time now is 03:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy