def get_rendered(font, text, color, cache):
    """Simple font renderer that caches render."""
    if text in cache:
        image = cache[text]
    else:
        image = font.render(text, 0, color)
        cache[text] = image
    return image