(font="segoe", size=32)
return png, fnt
Return the texture and FNT file names.
Return the texture and FNT file names.
Return the texture and FNT file names .
def get_font_filenames(font="segoe", size=32):
    """Return the texture and FNT file names."""
    size = find_best_size(font, size)
    filename = font + str(size)
    path = os.path.dirname(os.path.realpath(__file__))
    fnt = os.path.join(path, "%s.fnt" % filename)
    png = os.path.join(path, "%s_0.png" % filename)
    return png, fnt
def get_font_filenames ( font = "segoe" , size = 32 ) : size = find_best_size ( font , size ) filename = font + str ( size ) path = os . path . dirname ( os . path . realpath ( __file__ ) ) fnt = os . path . join ( path , "%s.fnt" % filename ) png = os . path . join ( path , "%s_0.png" % filename ) return png , fnt