public:
wxFontRefData()
{
- Init(12, wxDEFAULT, wxNORMAL, wxNORMAL, FALSE,
- "", wxFONTENCODING_DEFAULT);
+ Init(10, wxDEFAULT, wxNORMAL, wxNORMAL, FALSE,
+ "Geneva", wxFONTENCODING_DEFAULT);
}
wxFontRefData(const wxFontRefData& data)
(void)Create(size, family, style, weight, underlined, face, encoding);
}
+ wxFont(const wxNativeFontInfo& info)
+ {
+ Init();
+
+ (void)Create(info);
+ }
+
+ wxFont(const wxString& fontDesc);
+
bool Create(int size,
int family,
int style,
const wxString& face = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
+ bool Create(const wxNativeFontInfo& info);
+
virtual ~wxFont();
// assignment
// implementation only from now on
// -------------------------------
- int GetFontId() const;
- virtual bool IsFree() const;
virtual bool RealizeResource();
- virtual WXHANDLE GetResourceHandle();
- virtual bool FreeResource(bool force = FALSE);
- void MacInstall() const ;
- /*
- virtual bool UseResource();
- virtual bool ReleaseResource();
- */
protected:
// common part of all ctors