コード例 #1
0
ファイル: font.cpp プロジェクト: 781155640/wxWidgets
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;
}
コード例 #2
0
ファイル: font.cpp プロジェクト: 781155640/wxWidgets
void wxFont::SetWeight( wxFontWeight weight )
{
    AllocExclusive();
    M_FONTDATA.setWeight(ConvertFontWeight(weight));
}
コード例 #3
0
ファイル: font.cpp プロジェクト: AaronDP/wxWidgets
void wxNativeFontInfo::SetWeight(wxFontWeight weight)
{
    m_qtFont.setWeight(ConvertFontWeight(weight));
}
コード例 #4
0
ファイル: font.cpp プロジェクト: CodeSmithyIDE/wxWidgets
void wxNativeFontInfo::SetNumericWeight(int weight)
{
    m_qtFont.setWeight(ConvertFontWeight(weight));
}