(self, *options, **kw)
Return font metrics.

        For best performance, create a dummy widget
        using this font before calling this method.
Return font metrics.
Return font metrics .
def metrics(self, *options, **kw):
        """Return font metrics.

        For best performance, create a dummy widget
        using this font before calling this method."""
        args = ()
        displayof = kw.pop('displayof', None)
        if displayof:
            args = ('-displayof', displayof)
        if options:
            args = args + self._get(options)
            return self._tk.getint(
                self._call("font", "metrics", self.name, *args))
        else:
            res = self._split(self._call("font", "metrics", self.name, *args))
            options = {}
            for i in range(0, len(res), 2):
                options[res[i][1:]] = self._tk.getint(res[i+1])
            return options
def metrics ( self , * options , * * kw ) : args = ( ) displayof = kw . pop ( 'displayof' , None ) if displayof : args = ( '-displayof' , displayof ) if options : args = args + self . _get ( options ) return self . _tk . getint ( self . _call ( "font" , "metrics" , self . name , * args ) ) else : res = self . _split ( self . _call ( "font" , "metrics" , self . name , * args ) ) options = { } for i in range ( 0 , len ( res ) , 2 ) : options [ res [ i ] [ 1 : ] ] = self . _tk . getint ( res [ i + 1 ] ) return options