Difference between revisions of "Adding Fonts To CEGUI Editor 0.4.1"
From CEGUI Wiki - Crazy Eddie's GUI System (Open Source)
Tgraupmann (Talk | contribs) |
Tgraupmann (Talk | contribs) |
||
Line 8: | Line 8: | ||
For the arial font for example, Just copy and paste the '''Commonwealth-10.font''' font and rename it to '''arial-10.font''' font. The contents should look like: | For the arial font for example, Just copy and paste the '''Commonwealth-10.font''' font and rename it to '''arial-10.font''' font. The contents should look like: | ||
+ | <pre> | ||
<?xml version="1.0" ?> | <?xml version="1.0" ?> | ||
<Font Name="arial-06" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="06" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> | <Font Name="arial-06" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="06" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> | ||
Line 16: | Line 17: | ||
<Font Name="arial-12" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="12" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> | <Font Name="arial-12" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="12" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> | ||
<Font Name="arial-14" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="14" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> | <Font Name="arial-14" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="14" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> | ||
+ | </pre> |
Revision as of 19:09, 24 February 2007
HOWTO: Add Fonts to the CEGYU Editor for CEGUI Editor version 0.4.1
Using Windows XP You'll find a bunch of true type fonts in your c:\windows\fonts folder. Any font you want to use in the editor you'll need to copy to the C:\Program Files\CELayoutEditor\datafiles\fonts folder.
For any ttf file you copy to the font folder, you will need to create a font file.
For the arial font for example, Just copy and paste the Commonwealth-10.font font and rename it to arial-10.font font. The contents should look like:
<?xml version="1.0" ?> <Font Name="arial-06" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="06" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> <Font Name="arial-08" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="08" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> <Font Name="arial-09" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="09" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> <Font Name="arial-10" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="10" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> <Font Name="arial-11" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="11" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> <Font Name="arial-12" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="12" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/> <Font Name="arial-14" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="14" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/>