Пример #1
0
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("");
}
Пример #2
0
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;
}
Пример #3
0
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("");
}