move min/maxFont var out of class