[USETUP][BOOTDATA] Include optional CJK standard fonts (#2336)

This PR enables the developers to include the CJK standard fonts into ReactOS by adding them in Folder modules/optional. This feature is for test purpose only. You may not use the fonts illegally.
The embeddable font files are: mingliu.ttc, simsun.ttc, mssong.ttf, msgothic.ttc, msmincho.ttc, gulim.ttc and batang.ttc.
CORE-9619
This commit is contained in:
Katayama Hirofumi MZ 2020-02-14 10:47:20 +09:00 committed by GitHub
parent c89e111c6a
commit b539dd1c5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 256 additions and 13 deletions

View file

@ -917,7 +917,8 @@ UpdateRegistry(
/**/IN PPARTLIST PartitionList, /* HACK HACK! */
/**/IN WCHAR DestinationDriveLetter, /* HACK HACK! */
/**/IN PCWSTR SelectedLanguageId, /* HACK HACK! */
IN PREGISTRY_STATUS_ROUTINE StatusRoutine OPTIONAL)
IN PREGISTRY_STATUS_ROUTINE StatusRoutine OPTIONAL,
IN PFONTSUBSTSETTINGS SubstSettings OPTIONAL)
{
ERROR_NUMBER ErrorNumber;
NTSTATUS Status;
@ -1113,6 +1114,14 @@ DoUpdate:
SetMountedDeviceValues(PartitionList);
}
#ifdef __REACTOS__
if (SubstSettings)
{
/* HACK */
DoRegistryFontFixup(SubstSettings, wcstoul(SelectedLanguageId, NULL, 16));
}
#endif
Cleanup:
//
// TODO: Unload all the registry stuff, perform cleanup,