示例#1
0
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);
}
示例#2
0
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();
}
示例#3
0
void sysSettings::SetSQLFont(const wxFont &font)
{
	wxString fontName = font.GetNativeFontInfoDesc();

	Write(wxT("frmQuery/Font"), fontName);
}