parameters: (self, *options)
docstring: Return font metrics.
  
          For best performance, create a dummy widget
          using this font before calling this method.
docstring_summary: Return font metrics.
docstring_tokens: Return font metrics .
function: def metrics(self, *options):
          """Return font metrics.
  
          For best performance, create a dummy widget
          using this font before calling this method."""
  
          if options:
              return int(
                  self._call("font", "metrics", self.name, self._get(options))
                  )
          else:
              res = self._split(self._call("font", "metrics", self.name))
              options = {}
              for i in range(0, len(res), 2):
                  options[res[i][1:]] = int(res[i+1])
              return options
function_tokens: def metrics ( self , * options ) : if options : return int ( self . _call ( "font" , "metrics" , self . name , self . _get ( options ) ) ) else : res = self . _split ( self . _call ( "font" , "metrics" , self . name ) ) options = { } for i in range ( 0 , len ( res ) , 2 ) : options [ res [ i ] [ 1 : ] ] = int ( res [ i + 1 ] ) return options