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