projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
save the current status text for each pane inside wxStatusBarPane: native controls...
[wxWidgets.git]
/
src
/
common
/
fontmgrcmn.cpp
diff --git
a/src/common/fontmgrcmn.cpp
b/src/common/fontmgrcmn.cpp
index 7d7ef9d35d24464cb8dfe70777f1be4afd0fc8ce..86c88d8be2fbf22d85436202692ded2a8f47e0e9 100644
(file)
--- a/
src/common/fontmgrcmn.cpp
+++ b/
src/common/fontmgrcmn.cpp
@@
-225,19
+225,15
@@
void wxFontsManagerBase::AddBundle(wxFontBundle *bundle)
// ----------------------------------------------------------------------------
wxFontMgrFontRefData::wxFontMgrFontRefData(int size,
// ----------------------------------------------------------------------------
wxFontMgrFontRefData::wxFontMgrFontRefData(int size,
-
int
family,
-
int
style,
-
in
t weight,
+
wxFontFamily
family,
+
wxFontStyle
style,
+
wxFontWeigh
t weight,
bool underlined,
const wxString& faceName,
wxFontEncoding encoding)
{
bool underlined,
const wxString& faceName,
wxFontEncoding encoding)
{
- if ( family == wxDEFAULT )
- family = wxSWISS;
- if ( style == wxDEFAULT )
- style = wxNORMAL;
- if ( weight == wxDEFAULT )
- weight = wxNORMAL;
+ if ( family == wxFONTFAMILY_DEFAULT )
+ family = wxFONTFAMILY_SWISS;
if ( size == wxDEFAULT )
size = 12;
if ( size == wxDEFAULT )
size = 12;
@@
-294,21
+290,21
@@
void wxFontMgrFontRefData::SetPointSize(int pointSize)
m_fontValid = false;
}
m_fontValid = false;
}
-void wxFontMgrFontRefData::SetFamily(
int
family)
+void wxFontMgrFontRefData::SetFamily(
wxFontFamily
family)
{
{
- m_info.family =
(wxFontFamily)
family;
+ m_info.family = family;
m_fontValid = false;
}
m_fontValid = false;
}
-void wxFontMgrFontRefData::SetStyle(
int
style)
+void wxFontMgrFontRefData::SetStyle(
wxFontStyle
style)
{
{
- m_info.style =
(wxFontStyle)
style;
+ m_info.style = style;
m_fontValid = false;
}
m_fontValid = false;
}
-void wxFontMgrFontRefData::SetWeight(
in
t weight)
+void wxFontMgrFontRefData::SetWeight(
wxFontWeigh
t weight)
{
{
- m_info.weight =
(wxFontWeight)
weight;
+ m_info.weight = weight;
m_fontValid = false;
}
m_fontValid = false;
}