code: def _create_font_face_buttons(self):
          
  
          font_face_buttons = [
              (wx.FONTFLAG_BOLD, "OnBold", "FormatTextBold", _("Bold")),
              (wx.FONTFLAG_ITALIC, "OnItalics", "FormatTextItalic",
               _("Italics")),
              (wx.FONTFLAG_UNDERLINED, "OnUnderline", "FormatTextUnderline",
                  _("Underline")),
              (wx.FONTFLAG_STRIKETHROUGH, "OnStrikethrough",
                  "FormatTextStrikethrough", _("Strikethrough")),
              (wx.FONTFLAG_MASK, "OnFreeze", "Freeze", _("Freeze")),
              (wx.FONTFLAG_NOT_ANTIALIASED, "OnLock", "Lock", _("Lock cell")),
              (wx.FONTFAMILY_DECORATIVE, "OnMarkup", "Markup", _("Markup")),
          ]
  
          for __id, method, iconname, helpstring in font_face_buttons:
              bmp = icons[iconname]
              self.AddCheckTool(__id, iconname, bmp, bmp,
                                short_help_string=helpstring)
              self.Bind(wx.EVT_TOOL, getattr(self, method), id=__id)
docs: Creates font face buttons