Provide an informative error message if something goes wrong in setfont