class_docstr: Sets up printing to the given file. If **fp** is omitted,
  :py:attr:`sys.stdout` is assumed.
class_docstr_tok: ["Sets","up","printing","to","the","given","file",".","If","*","*","fp","*","*","is","omitted",",",":","py",":","attr",":","`","sys.stdout","`","is","assumed","."]
docstr: Selects which font to use.
  
  :param font: A Postscript font name
  :param size: Size in points.
docstr_tok: ["Selects","which","font","to","use",".",":","param","font",":","A","Postscript","font","name",":","param","size",":","Size","in","points","."]
code: def setfont(self, font, size):
      """
      Selects which font to use.
  
      :param font: A Postscript font name
      :param size: Size in points.
      """
      if font not in self.isofont:
          # reencode font
          self._fp_write(
              "/PSDraw-%s ISOLatin1Encoding /%s E\n" % (font, font)
          )
          self.isofont[font] = 1
      # rough
      self._fp_write("/F0 %d /PSDraw-%s F\n" % (size, font))
  
file_path: catboost/contrib/python/Pillow/py2/PIL/PSDraw.py
imports: import sys
  from .None import EpsImagePlugin
  from ._util import py3
label_desc: Use image node_id 5 for calling the PSDraw obj's underlying member method code with example usage: obj.setfont(font, size) without return types