Example #1
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;
}
Example #2
0
void wxFont::SetWeight( wxFontWeight weight )
{
    AllocExclusive();
    M_FONTDATA.setWeight(ConvertFontWeight(weight));
}
Example #3
0
void wxNativeFontInfo::SetWeight(wxFontWeight weight)
{
    m_qtFont.setWeight(ConvertFontWeight(weight));
}
Example #4
0
void wxNativeFontInfo::SetNumericWeight(int weight)
{
    m_qtFont.setWeight(ConvertFontWeight(weight));
}