code: def get_font(section='appearance', option='font', font_size_delta=0):
      
      font = FONT_CACHE.get((section, option))
  
      if font is None:
          families = CONF.get(section, option+"/family", None)
  
          if families is None:
              return QFont()
  
          family = get_family(families)
          weight = QFont.Normal
          italic = CONF.get(section, option+'/italic', False)
  
          if CONF.get(section, option+'/bold', False):
              weight = QFont.Bold
  
          size = CONF.get(section, option+'/size', 9) + font_size_delta
          font = QFont(family, size, weight)
          font.setItalic(italic)
          FONT_CACHE[(section, option)] = font
  
      size = CONF.get(section, option+'/size', 9) + font_size_delta
      font.setPointSize(size)
      return font
docs: Get console font properties depending on OS and user options