def __makeLine(im, line, cfg):
    if (not line):
        return
    sio = StringIO.StringIO()
    (x, y) = (line['x'], line['y'])
    text = line['text']
    font = line['font']
    rtext = font.render(text, cfg['font-antialiasing'], cfg['font-color'], cfg['background-color'])
    pygame.image.save(rtext, sio)
    sio.seek(0)
    ln_im = Image.open(sio)
    im.paste(ln_im, (x, y))
def __makeLine(im, line, cfg):
    if (not line):
        return
    sio = StringIO.StringIO()
    (x, y) = (line['x'], line['y'])
    text = line['text']
    font = line['font']
    rtext = font.render(text, cfg['font-antialiasing'], cfg['font-color'], cfg['background-color'])
    pygame.image.save(rtext, sio)
    sio.seek(0)
    ln_im = Image.open(sio)
    im.paste(ln_im, (x, y))