Logo: Relish

  1. Sign in

Project: Zebra-printer

Simple ASCII text

The text option accepts a number of different arguments.
The minimum number of arguments is x,y & the text. This
will generate a label that has the default rotation, scaling,
font, horizntal and vertical multiliers and the image will be
number (not reversed)

Scenarios
Basic text only DSL for EPL2
Given
a DSL with:
ZebraPrinterDocument.new do
  language :epl2
  text ''
end
When
I execute the DSL
Then
the output should include "A0,0,0,2,1,1,N,"""
Basic text only DSL for ZPL2
Given
a DSL with:
ZebraPrinterDocument.new do
  language :zpl2
  text ''
end
When
I execute the DSL
Then
the output should include "^FO0,0"
And
the output should include "^FD^FS"

Last published over 4 years ago by Paul Mitchell.