#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);
}
// Small characters don't look good when antialiased with the algorithm
- // that FreeType uses (mere 2x2 supersampling), so lets disable AA
+ // that FreeType uses (mere 2x2 supersampling), so let's disable AA
// completely for small fonts. Bitmap fonts are not antialiased either.
if ( ptSize <= gs_antialiasingThreshold ||
m_fontLib->fontLibType == MGL_BITMAPFONT_LIB )
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);
}
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: