// Name: font.cpp
// Author: Vaclav Slavik
// Id: $Id$
-// Copyright: (c) 2001, Vaclav Slavik
+// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
m_valid = data.m_valid;
if ( m_library )
m_library->IncRef();
+ wxLogTrace("mgl_font", "created fntrefdata %p, library is %p", this, m_library);
}
wxFontRefData::wxFontRefData(int size, int family, int style,
wxFontEncoding encoding)
{
Init(size, family, style, weight, underlined, faceName, encoding);
+ wxLogTrace("mgl_font", "created fntrefdata %p, library is %p", this, m_library);
}
wxFontRefData::~wxFontRefData()
{
+ wxLogTrace("mgl_font", "destructing fntrefdata %p, library is %p", this, m_library);
if ( m_library )
m_library->DecRef();
}
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
-void wxFont::Init()
-{
- if (wxTheFontList)
- wxTheFontList->Append(this);
-}
-
bool wxFont::Create(const wxNativeFontInfo& info)
{
return Create(info.pointSize, info.family, info.style, info.weight,
}
}
-wxFont::~wxFont()
-{
- if (wxTheFontList)
- wxTheFontList->DeleteObject(this);
-}
-
// ----------------------------------------------------------------------------
// accessors
// ----------------------------------------------------------------------------