use current codepage to convert font name to unicode

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5122 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-04-25 19:20:41 +00:00
parent f2ae1f6598
commit be3c7fe39c

View file

@ -292,7 +292,7 @@ void CDialogTemplate::SetFont(char* szFaceName, WORD wFontSize) {
m_bCharset = DEFAULT_CHARSET;
m_dwStyle |= DS_SETFONT;
if (m_szFont) delete [] m_szFont;
m_szFont = winchar_fromansi(szFaceName);
m_szFont = winchar_fromansi(szFaceName, m_uCodePage);
m_sFontSize = wFontSize;
}