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.25 date: 2021/01/20 14:31:43
user: cg
file: EpsonFX1PrinterStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

Description:


This class defines protocol for simple text printing on an Epson-FX1 printer
(and compatibles, such as FX80, FX100, etc.). 
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.

[Disclaimer2:]    
    This is more or less completely outdated (look at the creation date of this class !).
    Left for historic (nostalgic?) reasons.
    Will be removed (or made autoloaded) in the future.

copyright

COPYRIGHT (c) 1991 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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.
Answer aCharacter.
- currently only german umlauts are handled - If you own this type
of printer and depend on it, add more translation here.
See https://files.support.epson.com/pdf/fx100_/fx100_u1.pdf table6.2.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 09:27:08 GMT