// wxFontEnumerator
// ----------------------------------------------------------------------------
+#if wxOSX_USE_IPHONE
+extern CFArrayRef CopyAvailableFontFamilyNames();
+#endif
+
bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
bool fixedWidthOnly)
{
#if wxOSX_USE_CORE_TEXT
{
CFArrayRef cfFontFamilies = nil;
-
+
+#if wxOSX_USE_COCOA_OR_CARBON
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
if ( UMAGetSystemVersion() >= 0x1060 )
cfFontFamilies = CTFontManagerCopyAvailableFontFamilyNames();
else
#endif
{
-#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6) && wxOSX_USE_ATSU_TEXT
+#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6)
//
// From Apple's QA 1471 http://developer.apple.com/qa/qa2006/qa1471.html
//
cfFontFamilies = atsfontnames;
#endif
}
+#elif wxOSX_USE_IPHONE
+ cfFontFamilies = CopyAvailableFontFamilyNames();
+#endif
CFIndex count = CFArrayGetCount(cfFontFamilies);
for(CFIndex i = 0; i < count; i++)