<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_font_size(self, pt=None, px=None):
 """Set the font size to the desired size, in pt or px."""

        self.font.set_size(pt, px)

        self._render()