update text.fontsize to font.size to avoid deprecation warning