mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[WIN32SS][WINSRV] Do CJK font choose workaround (#2134)
Don't choose Asian charset font if there is no preferred font for CJK. CORE-12451
This commit is contained in:
parent
2f8d847c91
commit
007f32a223
1 changed files with 6 additions and 0 deletions
|
@ -69,7 +69,13 @@ CreateConsoleFontEx(
|
|||
~(VARIABLE_PITCH | FF_DECORATIVE | FF_ROMAN | FF_SCRIPT | FF_SWISS));
|
||||
|
||||
if (!IsValidConsoleFont(FaceName, CodePage))
|
||||
{
|
||||
StringCchCopyW(FaceName, LF_FACESIZE, L"Terminal");
|
||||
if (IsCJKCodePage(CodePage))
|
||||
{
|
||||
lf.lfCharSet = ANSI_CHARSET;
|
||||
}
|
||||
}
|
||||
|
||||
StringCchCopyNW(lf.lfFaceName, ARRAYSIZE(lf.lfFaceName),
|
||||
FaceName, LF_FACESIZE);
|
||||
|
|
Loading…
Reference in a new issue