Font_wxSMALL_FONT,
Font_wxITALIC_FONT,
Font_wxSWISS_FONT,
+ Font_Standard,
Font_Choose = 100,
Font_EnumFamiliesForEncoding,
menuStdFonts->Append(Font_wxSMALL_FONT, wxT("wxSMALL_FONT"), wxT("Small font used by wxWindows"));
menuStdFonts->Append(Font_wxITALIC_FONT, wxT("wxITALIC_FONT"), wxT("Italic font used by wxWindows"));
menuStdFonts->Append(Font_wxSWISS_FONT, wxT("wxSWISS_FONT"), wxT("Swiss font used by wxWindows"));
- menuSelect->Append(-2, wxT("Standar&d fonts"), menuStdFonts);
+ menuSelect->Append(Font_Standard, wxT("Standar&d fonts"), menuStdFonts);
menuSelect->AppendSeparator();
menuSelect->Append(Font_EnumFamilies, wxT("Enumerate font &families\tCtrl-F"));
if ( m_font.Ok() )
{
- wxNativeFontInfo *info = m_font.GetNativeFontInfo();
+ const wxNativeFontInfo *info = m_font.GetNativeFontInfo();
if ( info )
{
- delete info;
-
wxString fontDesc = m_font.GetNativeFontInfoUserDesc();
fontInfo.Printf(wxT("Native font info: %s"), fontDesc.c_str());