The workaround related to issue WC-341 found in the image release roadmap on your website was also tried without any success. Changing the registry value [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FontPath] to “\Windows\Fonts”, since this was the path suggested by the workaround, yielded no results either.
Is there any other workaround available to enable Chinese fonts?
Thank you @amota1 very much for the suggestion. We were able to get simplified Chinese fonts working.
For anyone interested, this is roughly the code you need to call to load the fonts properly.
using System.Runtime.InteropServices;
public class Fonts
{
[DllImport("coredll.dll", SetLastError = true)]
static extern int AddFontResource(string fontPath);
const string CHINESE_FONT_PATH = @"\FlashDisk\System\Fonts\simsun.ttc";
public static void Load()
{
var res = AddFontResource(CHINESE_FONT_PATH);
// res should not be 0 for eventual error checking.
}
}