+ //else: there is no information in config about this encoding
+ }
+ }
+#endif // wxUSE_CONFIG
+
+ // now try to map this encoding to a compatible one which we have on this
+ // system
+ wxFontEncodingArray equiv = wxEncodingConverter::GetAllEquivalents(encoding);
+ size_t count = equiv.GetCount();
+ bool foundEquivEncoding = FALSE;
+ wxFontEncoding equivEncoding = wxFONTENCODING_SYSTEM;
+ if ( count )
+ {
+ for ( size_t i = 0; i < count && !foundEquivEncoding; i++ )
+ {
+ // don't test for encoding itself, we already know we don't have it
+ if ( equiv[i] == encoding )
+ continue;
+
+ if ( TestAltEncoding(configEntry, equiv[i], info) )