only available on carbon or cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,10 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxArrayString fontFamilies ;
|
||||||
|
|
||||||
|
#if wxMAC_USE_ATSU_TEXT || wxMAC_USE_CORE_TEXT
|
||||||
|
|
||||||
//
|
//
|
||||||
// From Apple's QA 1471 http://developer.apple.com/qa/qa2006/qa1471.html
|
// From Apple's QA 1471 http://developer.apple.com/qa/qa2006/qa1471.html
|
||||||
//
|
//
|
||||||
@@ -48,8 +52,6 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
|||||||
ATSFontFamilyRef theATSFontFamilyRef = 0;
|
ATSFontFamilyRef theATSFontFamilyRef = 0;
|
||||||
OSStatus status = noErr;
|
OSStatus status = noErr;
|
||||||
|
|
||||||
wxArrayString fontFamilies ;
|
|
||||||
|
|
||||||
// Create the iterator
|
// Create the iterator
|
||||||
status = ATSFontFamilyIteratorCreate(kATSFontContextLocal, nil,nil,
|
status = ATSFontFamilyIteratorCreate(kATSFontContextLocal, nil,nil,
|
||||||
kATSOptionFlagsUnRestrictedScope,
|
kATSOptionFlagsUnRestrictedScope,
|
||||||
@@ -100,6 +102,7 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ATSFontFamilyIteratorRelease(&theFontFamilyIterator);
|
ATSFontFamilyIteratorRelease(&theFontFamilyIterator);
|
||||||
|
#endif
|
||||||
|
|
||||||
for ( size_t i = 0 ; i < fontFamilies.Count() ; ++i )
|
for ( size_t i = 0 ; i < fontFamilies.Count() ; ++i )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user