move setfont to separate function