- wxString xencoding, xregistry;
- wxGetXFontEncoding(encoding, &xregistry, &xencoding);
+ wxNativeEncodingInfo info;
+ wxGetNativeFontEncoding(encoding, &info);
+
+#if wxUSE_FONTMAP
+ if ( !wxTestFontEncoding(info) )
+ {
+ // ask font mapper for a replacement
+ (void)wxTheFontMapper->GetAltForEncoding(encoding, &info);
+ }
+#endif // wxUSE_FONTMAP