-#include "wx/utils.h"
-#include <strings.h>
-
-//-----------------------------------------------------------------------------
-// local data
-//-----------------------------------------------------------------------------
-
-static char *wx_font_family [] = {
- "wxDEFAULT", "wxDECORATIVE", "wxMODERN", "wxROMAN", "wxSCRIPT",
- "wxSWISS", "wxTELETYPE",
-};
-static char *wx_font_style [] = {
- "wxDEFAULT", "wxNORMAL", "wxSLANT", "wxITALIC",
-};
-static char *wx_font_weight [] = {
- "wxDEFAULT", "wxNORMAL", "wxBOLD", "wxLIGHT",
-};
-
-extern wxFontNameDirectory wxTheFontNameDirectory;
-
-//-----------------------------------------------------------------------------
-// wxFont
-//-----------------------------------------------------------------------------
-
-class wxFontRefData: public wxObjectRefData
-{
- public:
-
- wxFontRefData(void);
- ~wxFontRefData(void);
-
- wxList m_scaled_xfonts;
- int m_pointSize;
- int m_family, m_style, m_weight;
- bool m_underlined;
- int m_fontId;
- char* m_faceName;
-
-};
-
-wxFontRefData::wxFontRefData(void) : m_scaled_xfonts(wxKEY_INTEGER)
-{
- m_pointSize = -1;
- m_family = -1;
- m_style = -1;
- m_weight = -1;
- m_underlined = FALSE;
- m_fontId = 0;
- m_faceName = NULL;
-};
-
-wxFontRefData::~wxFontRefData(void)
-{
- wxNode *node = m_scaled_xfonts.First();
- while (node)
- {
- wxNode *next = node->Next();
- node = next;
- };
- if (m_faceName)
- {
- delete m_faceName;
- m_faceName = NULL;
- };
-};
-
-//-----------------------------------------------------------------------------
-
-#define M_FONTDATA ((wxFontRefData *)m_refData)