#include "wx/fontmap.h"
#include "wx/fontutil.h"
+#include "wx/mac/private.h"
+
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
wxNativeEncodingInfo info;
if ( !wxGetNativeFontEncoding(encoding, &info) )
{
- if ( !wxTheFontMapper->GetAltForEncoding(encoding, &info) )
+ if ( !wxFontMapper::Get()->GetAltForEncoding(encoding, &info) )
{
// no such encodings at all
return FALSE;
{
MenuHandle menu ;
Str255 p_name ;
- char c_name[256] ;
+
short lines ;
menu = NewMenu( 32000 , "\pFont" ) ;
for ( int i = 1 ; i < lines+1 ; i ++ )
{
GetMenuItemText( menu , i , p_name ) ;
-#if TARGET_CARBON
- p2cstrcpy( c_name, p_name ) ;
-#else
- p2cstr( p_name ) ;
- strcpy( c_name, (char *)p_name ) ;
-#endif
+ wxString c_name = wxMacMakeStringFromPascal(p_name) ;
+
/*
if ( m_fixedOnly )
bool wxFontEnumerator::EnumerateEncodings(const wxString& family)
{
- wxFAIL_MSG(wxT("TODO"));
+ wxFAIL_MSG(wxT("wxFontEnumerator::EnumerateEncodings() not yet implemented"));
return TRUE;
}