from pygame import freetype FONT = None def init(): global FONT FONT = freetype.SysFont('Arial', 16) def draw(surface, position, color, text): FONT.render_to(surface, position, text, color)