compilation fixes for !wxUSE_FONTMAP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -521,19 +521,22 @@ void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding)
|
||||
if ( !wxGetNativeFontEncoding(encoding, &info) )
|
||||
{
|
||||
#if wxUSE_FONTMAP
|
||||
if ( !wxTheFontMapper->GetAltForEncoding(encoding, &info) )
|
||||
if ( wxTheFontMapper->GetAltForEncoding(encoding, &info) )
|
||||
{
|
||||
if ( !info.facename.empty() )
|
||||
{
|
||||
// if we have this encoding only in some particular facename, use
|
||||
// the facename - it is better to show the correct characters in a
|
||||
// wrong facename than unreadable text in a correct one
|
||||
SetFaceName(info.facename);
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif // wxUSE_FONTMAP
|
||||
{
|
||||
// unsupported encoding, replace with the default
|
||||
info.charset = ANSI_CHARSET;
|
||||
}
|
||||
else if ( !info.facename.empty() )
|
||||
{
|
||||
// if we have this encoding only in some particular facename, use
|
||||
// the facename - it is better to show the correct characters in a
|
||||
// wrong facename than unreadable text in a correct one
|
||||
SetFaceName(info.facename);
|
||||
}
|
||||
}
|
||||
|
||||
lf.lfCharSet = info.charset;
|
||||
|
Reference in New Issue
Block a user