set frame font correctly