code: def OnCellFont(self, event):
          
  
          with undo.group(_("Font")):
              self.grid.actions.set_attr("textfont", event.font)
  
          self.grid.ForceRefresh()
  
          self.grid.update_attribute_toolbar()
  
          event.Skip()
docs: Cell font event handler