#pragma hdrstop
#endif
+#ifndef WX_PRECOMP
+ #include "wx/log.h"
+#endif
+
#include "wx/private/fontmgr.h"
#include "wx/sysopt.h"
{
m_font = MGL_loadFontInstance(fontLib, ptSize, 0.0, 0.0, aa);
- wxASSERT_MSG( m_font, _T("cannot create font instance") );
+ wxASSERT_MSG( m_font, wxT("cannot create font instance") );
}
wxFontInstance::~wxFontInstance()
if ( m_refCnt == 1 )
{
- wxCHECK_RET( m_fontLib == NULL, _T("font lib already created") );
+ wxCHECK_RET( m_fontLib == NULL, wxT("font lib already created") );
wxLogTrace("mgl_font", "opening library '%s'", m_fileName.mb_str());
m_fontLib = MGL_openFontLib(m_fileName.fn_str());
if ( m_refCnt == 0 )
{
- wxCHECK_RET( m_fontLib != NULL, _T("font lib not created") );
+ wxCHECK_RET( m_fontLib != NULL, wxT("font lib not created") );
wxLogTrace("mgl_font", "closing library '%s'", m_fileName.mb_str());
MGL_closeFontLib(m_fontLib);
wxFontInstance *wxFontFace::CreateFontInstance(float ptSize, bool aa)
{
- wxASSERT_MSG( m_fontLib, _T("font library not loaded!") );
+ wxASSERT_MSG( m_fontLib, wxT("font library not loaded!") );
return new wxFontInstance(ptSize, aa, m_fontLib);
}
info->boldFace, info->boldItalicFace);
}
+wxString wxFontBundle::GetName() const
+{
+ return wxString::FromAscii(m_fontInfo->familyName);
+}
+
+bool wxFontBundle::IsFixed() const
+{
+ return m_fontInfo->isFixed;
+}
+
+
// ----------------------------------------------------------------------------
// wxFontsManager
// ----------------------------------------------------------------------------
switch ( family )
{
case wxSCRIPT:
- return _T("Script");
+ return wxT("Script");
case wxDECORATIVE:
- return _T("Charter");
+ return wxT("Charter");
case wxROMAN:
- return _T("Times");
+ return wxT("Times");
case wxTELETYPE:
case wxMODERN:
- return _T("Courier");
+ return wxT("Courier");
case wxSWISS:
case wxDEFAULT:
default: