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:
parent
35c9a66079
commit
2f29e8dfe7
@ -40,6 +40,10 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
||||
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
|
||||
//
|
||||
@ -48,8 +52,6 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
||||
ATSFontFamilyRef theATSFontFamilyRef = 0;
|
||||
OSStatus status = noErr;
|
||||
|
||||
wxArrayString fontFamilies ;
|
||||
|
||||
// Create the iterator
|
||||
status = ATSFontFamilyIteratorCreate(kATSFontContextLocal, nil,nil,
|
||||
kATSOptionFlagsUnRestrictedScope,
|
||||
@ -100,6 +102,7 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
||||
}
|
||||
}
|
||||
ATSFontFamilyIteratorRelease(&theFontFamilyIterator);
|
||||
#endif
|
||||
|
||||
for ( size_t i = 0 ; i < fontFamilies.Count() ; ++i )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user