#pragma implementation "font.h"
#endif
+#include "wx/defs.h"
+
#ifdef __VMS
#pragma message disable nosimpint
#include "wx/vms_x_fix.h"
#pragma message enable nosimpint
#endif
-#include "wx/defs.h"
#include "wx/string.h"
#include "wx/font.h"
#include "wx/gdicmn.h"
{
Init();
- (void)Create(info.xFontName);
+ (void)Create(info.GetXFontName());
}
void wxFont::Init()
{
if( !fontname )
{
- *this = wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT);
+ *this = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT);
return TRUE;
}
m_refData = new wxFontRefData();
- M_FONTDATA->m_nativeFontInfo.xFontName = fontname; // X font name
+ M_FONTDATA->m_nativeFontInfo.SetXFontName(fontname); // X font name
wxString tmp;
Unshare();
M_FONTDATA->m_pointSize = pointSize;
- M_FONTDATA->m_nativeFontInfo.xFontName.Clear(); // invalid now
+ M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
RealizeResource();
}
Unshare();
M_FONTDATA->m_family = family;
- M_FONTDATA->m_nativeFontInfo.xFontName.Clear(); // invalid now
+ M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
RealizeResource();
}
Unshare();
M_FONTDATA->m_style = style;
- M_FONTDATA->m_nativeFontInfo.xFontName.Clear(); // invalid now
+ M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
RealizeResource();
}
Unshare();
M_FONTDATA->m_weight = weight;
- M_FONTDATA->m_nativeFontInfo.xFontName.Clear(); // invalid now
+ M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
RealizeResource();
}
Unshare();
M_FONTDATA->m_faceName = faceName;
- M_FONTDATA->m_nativeFontInfo.xFontName.Clear(); // invalid now
+ M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
RealizeResource();
}
Unshare();
M_FONTDATA->m_encoding = encoding;
- M_FONTDATA->m_nativeFontInfo.xFontName.Clear(); // invalid now
+ M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
RealizeResource();
}
{
wxCHECK_MSG( Ok(), (wxNativeFontInfo *)NULL, wxT("invalid font") );
- if(M_FONTDATA->m_nativeFontInfo.xFontName.IsEmpty())
+ if(M_FONTDATA->m_nativeFontInfo.GetXFontName().IsEmpty())
GetInternalFont();
return new wxNativeFontInfo(M_FONTDATA->m_nativeFontInfo);