eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'EpsonFX1PrinterStream':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: EpsonFX1PrinterStream


Inheritance:

   Object
   |
   +--Stream
      |
      +--PrinterStream
         |
         +--EpsonFX1PrinterStream

Package:
stx:libbasic2
Category:
Interface-Printing
Version:
rev: 1.22 date: 2017/11/28 18:19:45
user: cg
file: EpsonFX1PrinterStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
Claus Gittinger

Description:


This class defines protocol for simple text printing on an Epson-FX1
(and compatible) printer. 
It does not support multiple fonts, but knows how to print bold, italic etc.

Graphics printing is not supported - you need a postscriptprinter for this.

I cannot tell, if this is really an Epson -
all I had to test was a Citizen 120D - its documentation claims it to be 
FX1 compatible.

Notice: 
    This class only defines some minimum protocol for printing on
    Epsons - you really should use a PostscriptPrinter ...
    ... however, if you own an Epson, here is some class to start with.
    It may need to be enhanced at some places (for example: provide more
    fonts/emphasis's; better international character translation etc.)

[Disclaimer:]    
    This class is not officially supported - take it or leave it.


Class protocol:

initialization
o  initialize
self initialize

queries
o  printerTypeName
return a descriptive name


Instance protocol:

access-writing
o  cr
send a carriage return (newLine).
We have to output cr-nl here

o  nextPut: aCharacter
send aCharacter to the printer.
Catch special characters
- currently only german umlauts are handled - If you own this type
of printer and depend on it, add more translation here ...

emphasis change
o  bold
set emphasis to bold

o  italic
set emphasis to italic

o  normal
set emphasis to normal

layout
o  linesPerPage: n
change the lines-per-page setting

o  newPage
force a newPage

o  noTopMargin
turn off topMargin in the printer

o  pageHeight: inches
set the pageHeight in inches

o  proportional: aBoolean
turn on/off proportional printing

o  reset
reset the printer - send <ESC>@

o  topMargin: n
set the topMargin

private
o  character: char fromCharacterSet: set
send a character from an alternate character set



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 25 Apr 2024 05:59:18 GMT