From 6b0eebc537c0f96eab28295b4ae2c4e978a435a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 8 Jan 2000 23:45:24 +0000 Subject: [PATCH] add wxFontEncoding member into wxNativeEncodingInfo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/fontutil.h | 1 + src/mac/carbon/fontutil.cpp | 2 ++ src/mac/fontutil.cpp | 2 ++ src/msw/fontutil.cpp | 2 ++ src/unix/fontutil.cpp | 2 ++ 5 files changed, 9 insertions(+) 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; } -- 2.45.2