#include "wx/frame.h"
#include "wx/bitmap.h"
#include "wx/colour.h"
+#include "wx/font.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
#include "wx/dcmemory.h"
#include "wx/wxprec.h"
+#include "wx/font.h"
+
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
-#include "wx/font.h"
#include "wx/gdicmn.h"
#include "wx/encinfo.h"
#include "wx/settings.h"
#include "wx/bitmap.h"
#include "wx/colour.h"
+ #include "wx/font.h"
#endif
-#include "wx/font.h"
-
WXDLLIMPEXP_DATA_CORE(wxBrushList*) wxTheBrushList;
WXDLLIMPEXP_DATA_CORE(wxFontList*) wxTheFontList;
WXDLLIMPEXP_DATA_CORE(wxPenList*) wxThePenList;
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/memory.h"
+ #include "wx/font.h"
#endif
#include "wx/gdicmn.h"
-#include "wx/font.h"
#include "wx/file.h"
#include "wx/filename.h"
#include "wx/module.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/memory.h"
+ #include "wx/font.h"
#endif
#include "wx/gdicmn.h"
-#include "wx/font.h"
#include "wx/file.h"
#include "wx/filename.h"
#include "wx/module.h"
#include "wx/app.h"
#if wxUSE_GUI
#include "wx/toplevel.h"
+ #include "wx/font.h"
#endif
#endif
#if wxUSE_GUI
#include "wx/mac/uma.h"
- #include "wx/font.h"
#endif
#include <ctype.h>
///////////////////////////////////////////////////////////////////////////////
-// Name: mac/fontenum.cpp
+// Name: src/mac/classic/fontenum.cpp
// Purpose: wxFontEnumerator class for MacOS
// Author: Stefan Csomor
-// Modified by:
+// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
#include "wx/wxprec.h"
#ifdef __BORLANDC__
- #pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
- #include "wx/font.h"
+ #include "wx/font.h"
#endif
#include "wx/fontenum.h"
{
m_fontEnum = fontEnum;
m_charset = -1;
- m_fixedOnly = FALSE;
+ m_fixedOnly = false;
}
bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding)
if ( !wxFontMapper::Get()->GetAltForEncoding(encoding, &info) )
{
// no such encodings at all
- return FALSE;
+ return false;
}
}
m_charset = info.charset;
m_facename = info.facename;
- return TRUE;
+ return true;
}
void wxFontEnumeratorHelper::DoEnumerate()
Str255 p_name ;
short lines ;
-
+
menu = NewMenu( 32000 , "\pFont" ) ;
AppendResMenu( menu , 'FONT' ) ;
lines = CountMenuItems( menu ) ;
wxString c_name = wxMacMakeStringFromPascal(p_name) ;
/*
-
+
if ( m_fixedOnly )
{
// check that it's a fixed pitch font (there is *no* error here, the
return TRUE;
}
}
-
+
if ( m_charset != -1 )
{
// check that we have the right encoding
return TRUE;
}
}
-
+
*/
m_fontEnum->OnFacename( c_name ) ;
}
}
// else: no such fonts, unknown encoding
- return TRUE;
+ return true;
}
bool wxFontEnumerator::EnumerateEncodings(const wxString& family)
{
wxFAIL_MSG(wxT("wxFontEnumerator::EnumerateEncodings() not yet implemented"));
- return TRUE;
+ return true;
}
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/app.h"
+ #if wxUSE_GUI
+ #include "wx/font.h"
+ #endif
#endif
#include "wx/apptrait.h"
#if wxUSE_GUI
#include "wx/mac/uma.h"
- #include "wx/font.h"
#endif
#include <ctype.h>
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
+
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/intl.h"
+ #if wxUSE_GUI
+ #include "wx/font.h"
+ #endif
#endif
-#include "wx/mac/corefoundation/cfstring.h"
-#if wxUSE_GUI
- #include "wx/font.h"
-#endif
+#include "wx/mac/corefoundation/cfstring.h"
#ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
// converts this string into a carbon foundation string with optional pc 2 mac encoding
void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding encoding )
{
- Release() ;
+ Release() ;
if (st.IsEmpty())
{
m_cfs = CFSTR("") ;
{
if ( m_cfs == NULL )
return wxEmptyString ;
-
+
Size cflen = CFStringGetLength( m_cfs ) ;
size_t noChars ;
wxChar* buf = NULL ;
delete[] buf ;
return result ;
}
-
#ifndef WX_PRECOMP
#include "wx/colour.h"
+ #include "wx/font.h"
#endif
-#include "wx/font.h"
#include "wx/gdicmn.h"
#include "wx/module.h"
#pragma hdrstop
#endif
+#include "wx/font.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
- #include "wx/font.h"
#include "wx/log.h"
#include "wx/encinfo.h"
#endif // WX_PRECOMP
BYTE ff_family;
wxArrayString facename;
- // the list of fonts associated with a family was partially
+ // the list of fonts associated with a family was partially
// taken from http://www.codestyle.org/css/font-family
switch ( family )
facename.Add(_T("MS Shell Dlg"));
// Quoting the MSDN:
- // "MS Shell Dlg is a mapping mechanism that enables
- // U.S. English Microsoft Windows NT, and Microsoft Windows 2000 to
- // support locales that have characters that are not contained in code
+ // "MS Shell Dlg is a mapping mechanism that enables
+ // U.S. English Microsoft Windows NT, and Microsoft Windows 2000 to
+ // support locales that have characters that are not contained in code
// page 1252. It is not a font but a face name for a nonexistent font."
}
}
return wxFontBase::IsFixedWidth();
}
-
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/settings.h"
- #include "wx/font.h"
#include "wx/window.h"
#include "wx/accel.h"
#include "wx/string.h"
#include "wx/listbox.h"
#include "wx/bitmap.h"
#include "wx/colour.h"
+ #include "wx/font.h"
#endif
-#include "wx/font.h"
#include "wx/ownerdrw.h"
#define INCL_PM
// headers
// ----------------------------------------------------------------------------
+#include "wx/font.h"
+
#ifndef WX_PRECOMP
#include <stdio.h>
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
- #include "wx/font.h"
#include "wx/log.h"
#endif // WX_PRECOMP
//
// Internal use only method to set the FONTMETRICS array
//
-void wxFont::SetFM(
- PFONTMETRICS pFM
-, int nNumFonts
-)
+void wxFont::SetFM( PFONTMETRICS pFM, int nNumFonts )
{
M_FONTDATA->SetFM(pFM);
M_FONTDATA->SetNumFonts(nNumFonts);
} // end of wxFont::SetFM
-void wxFont::SetPS(
- HPS hPS
-)
+void wxFont::SetPS( HPS hPS )
{
Unshare();
///////////////////////////////////////////////////////////////////////////////
-// Name: msw/fontenum.cpp
+// Name: src/os2/fontenum.cpp
// Purpose: wxFontEnumerator class for Windows
// Author: Julian Smart
// Modified by: David Webster to add support for font encodings
#if wxUSE_FONTMAP
+#include "wx/fontenum.h"
+
#ifndef WX_PRECOMP
- #include "wx/font.h"
+ #include "wx/font.h"
#endif
-#include "wx/fontenum.h"
#include "wx/fontmap.h"
#include "wx/encinfo.h"
#include "wx/wxprec.h"
#include "wx/gdiobj.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/font.h"
+#endif
+
#include "wx/gdicmn.h"
-#include "wx/font.h"
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/settings.h"
- #include "wx/font.h"
#include "wx/window.h"
#include "wx/accel.h"
#include "wx/menu.h"
#pragma hdrstop
#endif
+#include "wx/font.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
- #include "wx/font.h"
#include "wx/log.h"
#include "wx/encinfo.h"
#endif // WX_PRECOMP
#include "wx/font.h"
#include "wx/bitmap.h"
#include "wx/settings.h"
- #include "wx/font.h"
#include "wx/window.h"
#include "wx/accel.h"
#include "wx/string.h"