#endif
#if !wxMOTIF_USE_RENDER_TABLE
WXFontList m_fontList; // Motif XmFontList
-#else // if wxUSE_RENDER_TABLE
+#else // if wxMOTIF_USE_RENDER_TABLE
WXRenderTable m_renderTable; // Motif XmRenderTable
WXRendition m_rendition; // Motif XmRendition
#endif
if (m_fontList)
XmFontListFree ((XmFontList) m_fontList);
m_fontList = NULL;
-#else // if wxUSE_RENDER_TABLE
+#else // if wxMOTIF_USE_RENDER_TABLE
if (m_renderTable)
XmRenderTableFree ((XmRenderTable) m_renderTable);
m_renderTable = NULL;
{
}
+wxGDIRefData *wxFont::CreateGDIRefData() const
+{
+ return new wxFontRefData;
+}
+
+wxGDIRefData *wxFont::CloneGDIRefData(const wxGDIRefData *data) const
+{
+ return new wxFontRefData(*wx_static_cast(const wxFontRefData *, data));
+}
+
// ----------------------------------------------------------------------------
// change the font attributes
// ----------------------------------------------------------------------------
int count = 0;
#if wxMOTIF_NEW_FONT_HANDLING
- wxChar* fontSpec = wxStrdup( xFontSpec.mb_str() );
+ char* fontSpec = wxStrdup(xFontSpec.mb_str());
XtSetArg( args[count], XmNfontName, fontSpec ); ++count;
XtSetArg( args[count], XmNfontType, XmFONT_IS_FONTSET ); ++count;
#else
XCharStruct overall;
int slen = str.length();
- XTextExtents((XFontStruct*) pFontStruct, (char*) str.mb_str(), slen,
+ XTextExtents((XFontStruct*) pFontStruct,
+ wx_const_cast(char*, (const char *)str.mb_str()), slen,
&direction, &ascent2, &descent2, &overall);
if ( width )