diff --git a/include/wx/fontutil.h b/include/wx/fontutil.h index de51565a22..6eb762401d 100644 --- a/include/wx/fontutil.h +++ b/include/wx/fontutil.h @@ -52,6 +52,7 @@ struct WXDLLEXPORT wxNativeEncodingInfo { wxString facename; // may be empty meaning "any" + wxFontEncoding encoding; // so that we know what this struct represents #if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMAC__) wxNativeEncodingInfo() { charset = 0; /* ANSI_CHARSET */ } diff --git a/src/mac/carbon/fontutil.cpp b/src/mac/carbon/fontutil.cpp index 4f61d13ff4..49d08234bc 100644 --- a/src/mac/carbon/fontutil.cpp +++ b/src/mac/carbon/fontutil.cpp @@ -150,6 +150,8 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding, return FALSE; } + info->encoding = encoding; + return TRUE; } diff --git a/src/mac/fontutil.cpp b/src/mac/fontutil.cpp index 4f61d13ff4..49d08234bc 100644 --- a/src/mac/fontutil.cpp +++ b/src/mac/fontutil.cpp @@ -150,6 +150,8 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding, return FALSE; } + info->encoding = encoding; + return TRUE; } diff --git a/src/msw/fontutil.cpp b/src/msw/fontutil.cpp index ecaeb8e2bc..f75d090505 100644 --- a/src/msw/fontutil.cpp +++ b/src/msw/fontutil.cpp @@ -158,6 +158,8 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding, return FALSE; } + info->encoding = encoding; + return TRUE; } diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index 19c96b3df6..db1939e352 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -206,6 +206,8 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding, return FALSE; } + info->encoding = encoding; + return TRUE; }