- 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)wxFontMapper::Get()->GetAltForEncoding(encoding, &info);
+ }
+#endif // wxUSE_FONTMAP