git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56668
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool DoCreate(int size,
const wxSize& pixelSize,
bool sizeUsingPixels,
bool DoCreate(int size,
const wxSize& pixelSize,
bool sizeUsingPixels,
- int family,
- int style,
- int weight,
+ wxFontFamily family,
+ wxFontStyle style,
+ wxFontWeight weight,
bool underlined = false,
const wxString& face = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
bool underlined = false,
const wxString& face = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
return m_nativeFontInfoOk ? true : m_sizeUsingPixels;
}
return m_nativeFontInfoOk ? true : m_sizeUsingPixels;
}
+ wxFontFamily GetFamily() const
+ wxFontStyle GetStyle() const
{
return m_nativeFontInfoOk ? m_nativeFontInfo.GetStyle()
: m_style;
}
{
return m_nativeFontInfoOk ? m_nativeFontInfo.GetStyle()
: m_style;
}
+ wxFontWeight GetWeight() const
{
return m_nativeFontInfoOk ? m_nativeFontInfo.GetWeight()
: m_weight;
{
return m_nativeFontInfoOk ? m_nativeFontInfo.GetWeight()
: m_weight;
m_nativeFontInfo = info;
// This is the best we can do since we don't have the
// correct information at this point.
m_nativeFontInfo = info;
// This is the best we can do since we don't have the
// correct information at this point.
+ m_family = wxFONTFAMILY_SWISS;
}
wxFontRefData::~wxFontRefData()
}
wxFontRefData::~wxFontRefData()