Install Font SimHei after FBA

A

askme

Hello,

I have to install the simplified chinese font SimHei to my running XPE
System.My Application is Unicode-Enabled but unfortunately SimHei is no
Unicode-Font. It uses the Codepage 936 for Simplified Chinese.

So I tried to add the font to my system with the following steps:

- copy "simhei.ttf" to the "fonts" folder

- register the font in the registry
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts"

- copy the Codepage "C_936.NLS" into the folder "C:\Windows\System32"

- register the codepage in
"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Nls\CodePage"

But there seems to be missing something else.
When I start my Application it displays only "â–¡â–¡â–¡â–¡" symbols.

Please Help me...

Best regards
akme
 
S

Sean Liming \(eMVP\)

The only way I know how to add fonts is to create a component.

Create registry key resource:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Windows NT\CurrentVersion\Fonts\
Value Name: <font> (TrueType)
Type: REG_SZ
Value: font.ttf

Add the "Font Prototype" component as the prototype in the component detail
settings

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit




Hello,

I have to install the simplified chinese font SimHei to my running XPE
System.My Application is Unicode-Enabled but unfortunately SimHei is no
Unicode-Font. It uses the Codepage 936 for Simplified Chinese.

So I tried to add the font to my system with the following steps:

- copy "simhei.ttf" to the "fonts" folder

- register the font in the registry
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts"

- copy the Codepage "C_936.NLS" into the folder "C:\Windows\System32"

- register the codepage in
"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Nls\CodePage"

But there seems to be missing something else.
When I start my Application it displays only "????" symbols.

Please Help me...

Best regards
akme
 
A

askme

Ok,

thank you for your answer. So I'll start with a new component....

Best regards,
askme
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top