Chinese font on Colibri iMX6 under WCE7

We’re trying to get Simplified Chinese fonts working under WCE7 version 1.6 on the Colibri iMX6.

The appropriate cab file was obtained and installed from How to install additional fonts | Toradex Developer Center, but no luck getting Chinese symbols to show up.

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 all in advance!

Have you done somewhere in your software AddfontResource ?

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.
	}
}