HPIIPrStr.st
author claus
Wed, 13 Oct 1993 03:14:30 +0100
changeset 4 1f66800df351
parent 2 07d9ee98e092
child 9 be1c17c19ba8
permissions -rw-r--r--
*** empty log message ***

"
 COPYRIGHT (c) 1988 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.
"

PrinterStream subclass:#HPLjetIIPrinterStream
       instanceVariableNames:''
       classVariableNames:''
       poolDictionaries:''
       category:'Streams-External'
!

HPLjetIIPrinterStream comment:'
$Header: /cvs/stx/stx/libbasic2/Attic/HPIIPrStr.st,v 1.4 1993-10-13 02:12:16 claus Exp $
'!

!HPLjetIIPrinterStream methodsFor:'access writing'!

cr
    "have to output cr-nl here"

    super nextPutUntranslated:(Character value:13).
    super nextPutUntranslated:(Character value:10).
    self spaces:leftMargin
!

courier
    "switch to courier font"

    super nextPut:(Character esc).
    super nextPutAll:'(s3T'
!

times
    "switch to times font"

    super nextPut:(Character esc).
    super nextPutAll:'(s5T'
!

helvetica
    "switch to helvetica font"

    super nextPut:(Character esc).
    super nextPutAll:'(s4T'
!

italic
    "switch to italic/oblique font-face"

    super nextPut:(Character esc).
    super nextPutAll:'(s1S'.
    super nextPut:(Character esc).
    super nextPutAll:'(s0B'
!

bold
    "switch to bold font-face"

    super nextPut:(Character esc).
    super nextPutAll:'(s0S'.
    super nextPut:(Character esc).
    super nextPutAll:'(s3B'
!

normal
    "switch to normal/roman font-face"

    super nextPut:(Character esc).
    super nextPutAll:'(s0S'.
    super nextPut:(Character esc).
    super nextPutAll:'(s0B'
! !