escpos-php
Public Member Functions | List of all members
Mike42\Escpos\Experimental\Unifont\UnifontPrintBuffer Class Reference
Inheritance diagram for Mike42\Escpos\Experimental\Unifont\UnifontPrintBuffer:
Inheritance graph
[legend]
Collaboration diagram for Mike42\Escpos\Experimental\Unifont\UnifontPrintBuffer:
Collaboration graph
[legend]

Public Member Functions

 __construct (string $unifontFilename)
 
 writeChar (int $codePoint)
 
 writeText (string $text)
 Accept UTF-8 text for printing. More...
 
 flush ()
 Cause the buffer to send any partial input and wait on a newline. More...
 
 setPrinter (Printer $printer=null)
 Used by Escpos to hook up one-to-one link between buffers and printers. More...
 
 writeTextRaw (string $text)
 Accept 8-bit text in the current encoding and add it to the buffer. More...
 
 getPrinter ()
 Used by Escpos to check if a printer is set.
 

Member Function Documentation

◆ flush()

Mike42\Escpos\Experimental\Unifont\UnifontPrintBuffer::flush ( )

Cause the buffer to send any partial input and wait on a newline.

If the printer is already on a new line, this does nothing.

Implements Mike42\Escpos\PrintBuffers\PrintBuffer.

◆ setPrinter()

Mike42\Escpos\Experimental\Unifont\UnifontPrintBuffer::setPrinter ( Printer  $printer = null)

Used by Escpos to hook up one-to-one link between buffers and printers.

Parameters
Printer | null$printerNew printer

Implements Mike42\Escpos\PrintBuffers\PrintBuffer.

◆ writeText()

Mike42\Escpos\Experimental\Unifont\UnifontPrintBuffer::writeText ( string  $text)

Accept UTF-8 text for printing.

Parameters
string$textText to print

Implements Mike42\Escpos\PrintBuffers\PrintBuffer.

◆ writeTextRaw()

Mike42\Escpos\Experimental\Unifont\UnifontPrintBuffer::writeTextRaw ( string  $text)

Accept 8-bit text in the current encoding and add it to the buffer.

Parameters
string$textText to print, already the target encoding.

Implements Mike42\Escpos\PrintBuffers\PrintBuffer.


The documentation for this class was generated from the following file: