void sysSettings::SetDDFont(const wxFont &font) { wxString fontName = font.GetNativeFontInfoDesc(); if (fontName == wxSystemSettings::GetFont(wxSYS_ICONTITLE_FONT).GetNativeFontInfoDesc()) Write(wxT("DDFont"), wxString(wxEmptyString)); else Write(wxT("DDFont"), fontName); }
void szFontProvider::SetFont(wxFont font, wxString name) { m_fontHash.erase(name); m_fontHash[name] = font; if (name == wxEmptyString) name = DEFFONT_KEYNAME; wxString key = FONT_KEYGROUP; key += name; wxConfig::Get()->Write(key, font.GetNativeFontInfoDesc()); wxConfig::Get()->Flush(); }
void sysSettings::SetSQLFont(const wxFont &font) { wxString fontName = font.GetNativeFontInfoDesc(); Write(wxT("frmQuery/Font"), fontName); }