factor draw_glyphs out of drawtext filter