Sha256: 7a6cf73d05986e19af998f9ffc39984056167fe0a767b68d4a0f08831e10dd37
Contents?: true
Size: 616 Bytes
Versions: 3
Compression:
Stored size: 616 Bytes
Contents
module Languages class Epl2 class Text attr_accessor :font, :text, :position def initialize(opts = {}) # FIXME @position = Languages::Epl2::Position[0,0] @font = opts[:font] || Epl2::Font.new @position = Languages::Epl2::Position.from_array(opts[:at]) if opts.has_key?(:at) @text = "" end def render "A#{@position},#{@font.rotation},#{@font.name},#{@font.height},#{@font.width},N,\"#{@text}\"" end def x=(x) @position.x = x end def y=(y) @position.y = y end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zebra_printer-0.9.0 | lib/languages/epl2/text.rb |
zebra_printer-0.8.0 | lib/languages/epl2/text.rb |
zebra_printer-0.1.1 | lib/languages/epl2/text.rb |