From 02e0afd5a9d78f997df5e498550e5b2832ca5aa0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 15 May 2000 14:19:52 +0000 Subject: Support for different character sets for each style. --- win32/PlatWin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') 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(italic ? 1 : 0); - lf.lfCharSet = DEFAULT_CHARSET; + lf.lfCharSet = characterSet; strcpy(lf.lfFaceName, faceName); id = ::CreateFontIndirect(&lf); -- cgit v1.2.3