code: def _update_font(self, textfont):
          
  
          try:
              fontface_id = self.fonts.index(textfont)
          except ValueError:
              fontface_id = 0
  
          self.font_choice_combo.Select(fontface_id)
docs: Updates text font widget
  
          Parameters
          ----------
  
          textfont: String
          \tFont name