Logo: Relish

  1. Sign in

Project: Zebra-printer

ASCII Text Size

The DSL provides a number of default sizes.
Due to the way sizes work across languages
size and font have been extracted out. This
means that the size will be approximate

Scenarios
Normal Text on EPL2
Given
a DSL with:
ZebraPrinterDocument.new do
  language :epl2
  font(:size => :normal) do
    text ''
  end
end
When
I execute the DSL
Then
the output should be like "A\d,\d,\d,2,1,1,[A-Z]"
Normal Text on EPL2
Given
a DSL with:
ZebraPrinterDocument.new do
  language :epl2
  font(:size => :large) do
    text ''
  end
end
When
I execute the DSL
Then
the output should be like "A\d,\d,\d,3,1,1,[A-Z]"
Normal Text on ZPL2
Given
a DSL with:
ZebraPrinterDocument.new do
  language :zpl2
  font(:size => :normal) do
    text ''
  end
end
When
I execute the DSL
Then
the output should be like "\^CF0N"

Last published almost 5 years ago by Paul Mitchell.