how to use system's font ?

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
karmaGfa
Just popping in
Just popping in
Posts: 6
Joined: Wed Jan 19, 2005 07:51
Location: Taiwan

how to use system's font ?

Postby karmaGfa » Wed Jan 19, 2005 08:06

Hello,

Someone knows how to use a font present on the current system ? I would like to use the chinese font which is available on all the chinese version of window instead of providing one (too big, and copyright issues perhaps) with my game.

Thank you
--
For the 2005 year, I will not complain anymore about open source projects. :pint:

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: how to use system's font ?

Postby CrazyEddie » Wed Jan 19, 2005 10:28

You simply need to ensure that the path to the font file is specified (or accessible if using a resource manager) when creating the CEGUI::Font. This may mean paths in .xml files, paths in code, or if you're using a resource manager of some kind you just ensure that the fonts path is accessible to that.

This could all be as simple as "%SystemRoot%\Fonts\myFont.ttf", or there could be more complex scenarios.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 10 guests