Where is file *.font come from??

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
lan
Just popping in
Just popping in
Posts: 10
Joined: Tue Oct 18, 2005 15:13

Where is file *.font come from??

Postby lan » Sun Dec 04, 2005 14:52

Hi!

I'm a beginner with CEGUI and not very well in English.
I've problem about using font. I want to change font(default font is Tahoma-12) but I don't know what is *.font and where is it come from. Please answer me, thank you.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Where is file *.font come from??

Postby lindquist » Sun Dec 04, 2005 15:27

The .font files are XML files specifying a CEGUI font.
They are located in the data directory '../datafiles/fonts/' by default.

If you look inside the file with a text editor you'll see that the format is very simple.

For example if you want to change the .ttf file used to generate the font, you just change the 'Filename' attribute of the font tag to point to the new font.

If you want a complete description of the font XML format, then take a look at 'cegui_mk2/XMLRefSchema/Readme.txt' in the source distribution.

User avatar
lan
Just popping in
Just popping in
Posts: 10
Joined: Tue Oct 18, 2005 15:13

Re: Where is file *.font come from??

Postby lan » Mon Dec 05, 2005 08:38

thx for your answer :D


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 10 guests