aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-05-15 14:19:52 +0000
committernyamatongwe <devnull@localhost>2000-05-15 14:19:52 +0000
commite77cc3907af16f9393f745423e39540436d85444 (patch)
treeb5e3048d8416aefd2a461149fbb755f71fc49f39 /win32/PlatWin.cxx
parentbfd29c74a006b38b3c722145a94e4af05ebe9603 (diff)
downloadscintilla-mirror-e77cc3907af16f9393f745423e39540436d85444.tar.gz
Support for different character sets for each style.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 7bc9fc8c3..e9174e9df 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -128,7 +128,7 @@ Font::Font() {
Font::~Font() {
}
-void Font::Create(const char *faceName, int size, bool bold, bool italic) {
+void Font::Create(const char *faceName, int characterSet, int size, bool bold, bool italic) {
Release();
LOGFONT lf;
@@ -137,7 +137,7 @@ void Font::Create(const char *faceName, int size, bool bold, bool italic) {
lf.lfHeight = -(abs(size));
lf.lfWeight = bold ? FW_BOLD : FW_NORMAL;
lf.lfItalic = static_cast<BYTE>(italic ? 1 : 0);
- lf.lfCharSet = DEFAULT_CHARSET;
+ lf.lfCharSet = characterSet;
strcpy(lf.lfFaceName, faceName);
id = ::CreateFontIndirect(&lf);