Difference between revisions of "Adding Fonts To CEGUI Editor 0.4.1"

From CEGUI Wiki - Crazy Eddie's GUI System (Open Source)
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
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>
+
<source lang="xml">
&lt;?xml version="1.0" ?&gt;
+
<?xml version="1.0" ?>
&lt;Font Name="arial-10" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="10" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/&gt;
+
<Font Name="arial-10" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="10" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/>
</pre>
+
</source>
  
 
[[Category:HowTo]]
 
[[Category:HowTo]]

Latest revision as of 13:10, 28 February 2011

Written for CEGUI 0.4


Works with versions 0.4.x (obsolete)

HOWTO: Add Fonts to the CEGUI Editor for the 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-10" Filename="../datafiles/fonts/arial.ttf" Type="Dynamic" Size="10" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/>