Loading Additional Fonts on the MK22X0
You can program the MK22X0 to support additional fonts such as Unicode and double-byte character font.
The MK22X0 supports the following system fonts as shipped from the factory. The font files corresponding to these
formats are located in the
•
Arial
•
Comic Sans MS
•
Courier New
•
Georgia
•
Symbol
•
Tahoma
•
Times New Roman
•
Verdana
•
Wingding.
The default system font path for these fonts is \windows.
Use one of the following options to load fonts not supplied with the MK22X0:
•
Change the system font path where the system looks for fonts. For example, to change default system font
path from
\windows
\application\fonts:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FontPath]
"FontPath"="\application\fonts"
Adding this registry changes the entire system fonts directory, so fonts supplied with the OS are no longer
available. To use both the provided system fonts and new fonts, copy the system default fonts to the new font
directory.
•
Copy new/alternate fonts to the default
•
Copy alternate fonts to the
Copying new fonts to the \windows or \windows\fonts preserves existing fonts. However the new fonts consume
system RAM as they are part of the ObjectStore.
Using the third option, i.e., copying fonts to the \windows\fonts directory, makes it easier to manage the system.
Note that fonts copied to \windows or \windows\fonts do not persist over power cycles or cold boots. Use the copy
file feature to persist them over power cycles or cold boots.
Using Additional Fonts in Native Applications
Any application written in EVC can use the additional fonts using either MFC or Win32 APIs. If a specified font is
missing, the system uses an available font for display.
Using Additional Fonts in Managed Applications
All fonts installed in the system are available to the .Net Compact Framework during runtime.
folder with .ttf extension.
\windows
to
add the following registry to the system along with new fonts in
\application\fonts
\windows
directory.
\windows\fonts
directory.
System Features 8 - 15