// Purpose: font management for ports that don't have their own
// Author: Vaclav Slavik
// Created: 2006-11-18
-// RCS-ID: $Id$
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
// (c) 2006 REA Elektronik GmbH
// Licence: wxWindows licence
wxFontInstance *wxFontFaceBase::GetFontInstance(float ptSize, bool aa)
{
- wxASSERT_MSG( m_refCnt > 0, _T("font library not loaded!") );
+ wxASSERT_MSG( m_refCnt > 0, wxT("font library not loaded!") );
for ( wxFontInstanceList::const_iterator i = m_instances->begin();
i != m_instances->end(); ++i )
{
wxFontFace *f = m_faces[type];
- wxCHECK_MSG( f, NULL, _T("no such face in font bundle") );
+ wxCHECK_MSG( f, NULL, wxT("no such face in font bundle") );
f->Acquire();
{
wxASSERT_MSG( font.GetFaceName().empty() ||
GetName().CmpNoCase(font.GetFaceName()) == 0,
- _T("calling GetFaceForFont for incompatible font") );
+ wxT("calling GetFaceForFont for incompatible font") );
int type = FaceType_Regular;
type |= FaceType_Bold;
// FIXME -- this should read "if ( font->GetStyle() == wxITALIC )",
- // but since MGL neither DFB supports slant, we try to display it with
- // italic face (better than nothing...)
+ // but since DFB doesn't support slant, we try to display it with italic
+ // face (better than nothing...)
if ( font.GetStyle() == wxITALIC || font.GetStyle() == wxSLANT )
{
if ( HasFace((FaceType)(type | FaceType_Italic)) )
return GetFace((FaceType)i);
}
- wxFAIL_MSG( _T("no face") );
+ wxFAIL_MSG( wxT("no face") );
return NULL;
}
m_info.underlined = underlined;
m_info.encoding = encoding;
- m_noAA = false;
-
m_fontFace = NULL;
m_fontBundle = NULL;
m_fontValid = false;
wxFontMgrFontRefData::wxFontMgrFontRefData(const wxFontMgrFontRefData& data)
{
m_info = data.m_info;
- m_noAA = data.m_noAA;
m_fontFace = data.m_fontFace;
m_fontBundle = data.m_fontBundle;
{
wxConstCast(this, wxFontMgrFontRefData)->EnsureValidFont();
return m_fontFace->GetFontInstance(m_info.pointSize * scale,
- antialiased && !m_noAA);
+ antialiased);
}
void wxFontMgrFontRefData::SetPointSize(int pointSize)
m_fontValid = false;
}
-void wxFontMgrFontRefData::SetNoAntiAliasing(bool no)
-{
- m_noAA = no;
-}
-
-
void wxFontMgrFontRefData::EnsureValidFont()
{
if ( !m_fontValid )