X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff42758536f8d573409bf6c35528497ba36b4d0e..6cef0db28018fd2644ee4e38af715872e5242459:/src/mac/carbon/fontenum.cpp?ds=sidebyside diff --git a/src/mac/carbon/fontenum.cpp b/src/mac/carbon/fontenum.cpp index 6db95ec845..233bdf3dd8 100644 --- a/src/mac/carbon/fontenum.cpp +++ b/src/mac/carbon/fontenum.cpp @@ -34,6 +34,12 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, bool fixedWidthOnly) { + if ( fixedWidthOnly ) + { + wxFAIL_MSG( "enumerating only fixed width fonts not supported" ); + return false; + } + // // From Apple's QA 1471 http://developer.apple.com/qa/qa2006/qa1471.html // @@ -81,7 +87,7 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, CFStringRef theName = NULL; ATSFontFamilyGetName(theATSFontFamilyRef, kATSOptionFlagsDefault, &theName); - wxMacCFStringHolder cfName(theName) ; + wxCFStringRef cfName(theName) ; fontFamilies.Add(cfName.AsString(wxLocale::GetSystemEncoding())); } else if (status == kATSIterationScopeModified) // Make sure the font database hasnÕt changed. @@ -104,7 +110,7 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, return true; } -bool wxFontEnumerator::EnumerateEncodings(const wxString& family) +bool wxFontEnumerator::EnumerateEncodings(const wxString& WXUNUSED(family)) { wxFAIL_MSG(wxT("wxFontEnumerator::EnumerateEncodings() not yet implemented"));