<s> """<STR_LIT>""" <EOL> import numbers <EOL> from . color import Color <EOL> from . compat import string_type , text <EOL> __all__ = '<STR_LIT>' , <EOL> class Font ( tuple ) : <EOL> """<STR_LIT>""" <EOL> def __new__ ( cls , path , size = <NUM_LIT:0> , color = None , antialias = True ) : <EOL> if not isinstance ( path , string_type ) : <EOL> raise TypeError ( '<STR_LIT>' + repr ( path ) ) <EOL> if not isinstance ( size , numbers . Real ) : <EOL> raise TypeError ( '<STR_LIT>' + repr ( size ) ) <EOL> if color is None : <EOL> color = Color ( '<STR_LIT>' ) <EOL> elif not isinstance ( color , Color ) : <EOL> raise TypeError ( '<STR_LIT>' <EOL> '<STR_LIT>' + repr ( color ) ) <EOL> path = text ( path ) <EOL> return tuple . __new__ ( cls , ( path , size , color , bool ( antialias ) ) ) <EOL> @ property <EOL> def path ( self ) : <EOL> """<STR_LIT>""" <EOL> return self [ <NUM_LIT:0> ] <EOL> @ property <EOL> def size ( self ) : <EOL> """<STR_LIT>""" <EOL> return self [ <NUM_LIT:1> ] <EOL> @ property <EOL> def color ( self ) : <EOL> """<STR_LIT>""" <EOL> return self [ <NUM_LIT:2> ] <EOL> @ property <EOL> def antialias ( self ) : <EOL> """<STR_LIT>""" <EOL> return self [ <NUM_LIT:3> ] <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' . format ( <EOL> type ( self ) , <EOL> tuple . __repr__ ( self ) <EOL> ) </s>
