1. wxFontMapper seems to work for wxMSW
2. font functions moved into a separate file, duplicated code in font.cpp and fontdlg.cpp removed 3. wxCustomDataObject docs finished git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -438,9 +438,9 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset,
|
||||
|
||||
wxString *encodingNamesTranslated = new wxString[count];
|
||||
|
||||
for ( size_t n = 0; n < count; n++ )
|
||||
for ( size_t i = 0; i < count; i++ )
|
||||
{
|
||||
encodingNamesTranslated[n] = wxGetTranslation(gs_encodingDescs[n]);
|
||||
encodingNamesTranslated[i] = wxGetTranslation(gs_encodingDescs[i]);
|
||||
}
|
||||
|
||||
// the parent window
|
||||
@@ -564,8 +564,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
|
||||
wxFontData retData = dialog.GetFontData();
|
||||
wxFont font = retData.GetChosenFont();
|
||||
|
||||
info->xregistry = retData.EncodingInfo().xregistry;
|
||||
info->xencoding = retData.EncodingInfo().xencoding;
|
||||
*info = retData.EncodingInfo();
|
||||
|
||||
// remember this in the config
|
||||
if ( ChangePath(FONTMAPPER_FONT_FROM_ENCODING_PATH, &pathOld) )
|
||||
|
Reference in New Issue
Block a user