module Zebra::Zpl::FontSize
Constants
- SIZE_0
- SIZE_1
- SIZE_2
- SIZE_3
- SIZE_4
- SIZE_5
- SIZE_6
- SIZE_7
- SIZE_8
- SIZE_9
Public Class Methods
valid_font_size?(font_size)
click to toggle source
# File lib/zebra/zpl/font.rb, line 17 def self.valid_font_size?(font_size) (0..32000).include?(font_size.to_i) end
validate_font_size(font_size)
click to toggle source
# File lib/zebra/zpl/font.rb, line 21 def self.validate_font_size(font_size) raise InvalidFontSizeError unless valid_font_size?(font_size) end