Pre- -Adding T TrueType e Fonts to o WES7 I mage

SJJ Embedded
E
d Micro Sollutions
Version 1
1.1
Pre--Adding TrueType
T
e Fonts to
o WES7 Image
By Sean D. Liming
Ownerr
SJJ Em
mbedded Micro
o Solutions
May 2011
2
As yo
ou develop cu
ustom applica
ation, you may
y develop or use special T
TrueType Fon
nts that are no
ot
standard Windows
s fonts. Norm
mally, all you have to do iss drop the fo
ont into the \W
Windows\Fonts
folderr and it will in
nstall the font directly. For WES7, there
e are a couple of setup stteps required if
you want
w
to pre-ad
dd the font in a WES 7 answer file and h
have them insstalled into yo
our image.
For a fun example, we’ll use the Aurabe
esh font from
m Star Wars™
™. English ccharacters arre
replac
ced 1:1 with a unique set of characters. Mo
ore informattion can be
e found here
e:
http:///starwars.wikia.com/wiki/Aurebesh. You
u can see the
e Aurabesh ffont characte
ers used in th
he
movie
es, video gam
mes, and on www.starwars
w
.com:
•
•
•
•
Corusant (corusa
(
ant)
Naboo (n
naboo)
Tatooine (tatooine)
far)
Mustafar (mustaf
he few non-fans:
For th
•
o World)
Hello World (Hello
c download the font from
m various web
bsites. Here a
are a few sitess:
You can
•
•
http://www
w.fontfiles.com
m/Fonts/Detailed/56.html
http://www
w.fonttrader.co
om/detailed~n
name~Aurabe
esh~font~363
38.htm
e are two step
ps to add a ne
ew font to the answer file:
There
1. Settup the distrib
bution share: $OEM$ Folders\Star Wars
rs Aurebesh\$
$OEM$\$$\Fo
onts. In my test
case, I download tw
wo different versions
v
of the
e font:
•
•
newaure.tttf
AURABES
SH.TTF
Figurre 1 - Setting
g up the distrribution sharre
ng the fonts in
n this folders means they will
w be installe
ed in the \Win
ndows\fonts d
directory durin
ng
Placin
OS in
nstallation. Th
hey will not be
e accessible until they are
e registered in the registryy, which bring
gs
us to step 2:
Copyrig
ght © 2011 SJJ Embedded
E
Micro
o Solutions, LLC.., All Rights Rese
erved.
www.sjjjmicro.com
05/11//11
1
SJJ Embedded
E
d Micro Sollutions
Version 1
1.1
2. A registry
r
key is
s needed to liink in the font. You can ad
dd the registrry key using a Synchronou
us
comm
mand and reg
g.exe comman
nd to registerr the font. I tyypically set th
he run the co
ommand unde
er
Pass 4 Specialize
e to register the font. Here are the tw
wo synchrono
ous command
ds to enter fo
or
each font:
reg add "HKLM\SO
OFTWARE\Microsoft\Windo
ows NT\CurrentVersion\\Fonts"
NewAureb
besh (TrueTyp
pe)" /t REG_S
SZ /d newaure
e.ttf /f
/v
"
reg add "H
HKLM\SOFTW
WARE\Micros
soft\Windows NT\CurrentV
Version\Fonts" /v "Aurebessh
(TrueType
e)" /t REG_SZ
Z /d AURABES
SH.ttf /f
Figure
F
2 - Exa
ample of add
ding one Syn
nchronous C
Command
Once the image is
s installed, you can go to the fonts conttrol panel app
plet, and view
w that the fonts
installled correctly.
cessfully add
ded to the im
mage
Figure 3 - Fonts succ
Copyrig
ght © 2011 SJJ Embedded
E
Micro
o Solutions, LLC.., All Rights Rese
erved.
www.sjjjmicro.com
05/11//11
2
SJJ Embedded
E
d Micro Sollutions
Version 1
1.1
If you really want to
t get crazy with
w the font, you
y can chan
nge all the dissplay propertiies to use you
ur
new font.
Figure 4 - Display
y fonts set to
o the new fon
nt.
Windo
ows is a registe
ered trademark
k of Microsoft Corporation.
C
Copyrig
ght © 2011 SJJ Embedded
E
Micro
o Solutions, LLC.., All Rights Rese
erved.
www.sjjjmicro.com
05/11//11
3