How to show different fonts

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
pawan
Just popping in
Just popping in
Posts: 4
Joined: Mon Mar 21, 2005 04:17
Contact:

How to show different fonts

Postby pawan » Mon Mar 21, 2005 07:12

Hi!
I'm developing a HTML parser in cegui.
I want help on how to show different fonts in the html file.
As we have one fonts file in CEGUI and can change font before executing our application but in HTML file multiple fonts can be used, so how to show different fonts at runtime reading them from the html file.

Thanks and regards
Pawan.

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

Re: How to show different fonts

Postby CrazyEddie » Mon Mar 21, 2005 11:08

You either have to know which fonts are to be used ahead of time, or scan the html and build a list of fonts to be loaded. Anothing thing you should have is some kind of font translation table, where you can specify alternate names for fonts and even a default font to be used when the requested font is not available.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 6 guests