docstr: Get the current default font.
  
  To set the default font for this ImageDraw instance::
  
      from PIL import ImageDraw, ImageFont
      draw.font = ImageFont.truetype("Tests/fonts/FreeMono.ttf")
  
  To set the default font for all future ImageDraw instances::
  
      from PIL import ImageDraw, ImageFont
      ImageDraw.ImageDraw.font = ImageFont.truetype("Tests/fonts/FreeMono.ttf")
  
  If the current default font is ``None``,
  it is initialized with ``ImageFont.load_default()``.
  
  :returns: An image font.
docstr_tok: ["Get","the","current","default","font",".","To","set","the","default","font","for","this","ImageDraw","instance",":",":","from","PIL","import","ImageDraw",",","ImageFont","draw.font","=","ImageFont.truetype","(","``","Tests\/fonts\/FreeMono.ttf","''",")","To","set","the","default","font","for","all","future","ImageDraw","instances",":",":","from","PIL","import","ImageDraw",",","ImageFont","ImageDraw.ImageDraw.font","=","ImageFont.truetype","(","``","Tests\/fonts\/FreeMono.ttf","''",")","If","the","current","default","font","is","``","None","``",",","it","is","initialized","with","``","ImageFont.load_default","(",")","``",".",":","returns",":","An","image","font","."]
code: def getfont(self):
      """
      Get the current default font.
  
      To set the default font for this ImageDraw instance::
  
          from PIL import ImageDraw, ImageFont
          draw.font = ImageFont.truetype("Tests/fonts/FreeMono.ttf")
  
      To set the default font for all future ImageDraw instances::
  
          from PIL import ImageDraw, ImageFont
          ImageDraw.ImageDraw.font = ImageFont.truetype("Tests/fonts/FreeMono.ttf")
  
      If the current default font is ``None``,
      it is initialized with ``ImageFont.load_default()``.
  
      :returns: An image font."""
      if not self.font:
          # FIXME: should add a font repository
          from . import ImageFont
  
          self.font = ImageFont.load_default()
      return self.font
  
imports: import math
  import numbers
  from .None import Image, ImageColor
label_desc: Use image node_id 2 for calling the ImageDraw obj's underlying member method code with example usage: obj.getfont() and returns: self