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:
parent
f2ae1f6598
commit
be3c7fe39c
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ void CDialogTemplate::SetFont(char* szFaceName, WORD wFontSize) {
|
||||||
m_bCharset = DEFAULT_CHARSET;
|
m_bCharset = DEFAULT_CHARSET;
|
||||||
m_dwStyle |= DS_SETFONT;
|
m_dwStyle |= DS_SETFONT;
|
||||||
if (m_szFont) delete [] m_szFont;
|
if (m_szFont) delete [] m_szFont;
|
||||||
m_szFont = winchar_fromansi(szFaceName);
|
m_szFont = winchar_fromansi(szFaceName, m_uCodePage);
|
||||||
m_sFontSize = wFontSize;
|
m_sFontSize = wFontSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue