void wxFont::SetFamily( wxFontFamily family ) { AllocExclusive(); M_FONTDATA.setStyleHint(ConvertFontFamily(family)); // reset the face name to force qt to choose a new font M_FONTDATA.setFamily(""); }
bool wxFont::Create(wxSize size, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underlined, const wxString& face, wxFontEncoding WXUNUSED(encoding) ) { m_refData = new wxFontRefData(size.GetHeight(), ConvertFontFamily(family), style != wxFONTSTYLE_NORMAL, ConvertFontWeight(weight), underlined, wxQtConvertString(face)); return true; }
void wxNativeFontInfo::SetFamily(wxFontFamily family) { m_qtFont.setStyleHint(ConvertFontFamily(family)); // reset the face name to force qt to choose a new font m_qtFont.setFamily(""); }