parameters: (self, style={})
docstring: overrides style values at the current stack level
docstring_summary: overrides style values at the current stack level
docstring_tokens: overrides style values at the current stack level
function: def set(self, style={}):
          """overrides style values at the current stack level"""
          _style = {}
          for attr in style:
              if attr in self.cmds and not style[attr] in self.cmds[attr]:
                  print('WARNING: ESC/POS PRINTING: ignoring invalid value: %s for style %s' % (style[attr], attr))
              else:
                  self.stack[-1][attr] = self.enforce_type(attr, style[attr])
function_tokens: def set ( self , style = { } ) : _style = { } for attr in style : if attr in self . cmds and not style [ attr ] in self . cmds [ attr ] : print ( 'WARNING: ESC/POS PRINTING: ignoring invalid value: %s for style %s' % ( style [ attr ] , attr ) ) else : self . stack [ - 1 ] [ attr ] = self . enforce_type ( attr , style [ attr ] )