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
parul
Not too shy to talk
Not too shy to talk
Posts: 22
Joined: Mon Feb 14, 2005 05:11

Font

Postby parul » Mon Mar 21, 2005 04:18

Hi All,

I want to use different font attribute (italic,bold, different colors)in my application. so at runtime how i can change font attribute(italic,bold, different colors)etc.

Regards
Parul

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

Re: Font

Postby CrazyEddie » Mon Mar 21, 2005 11:01

Italic and bold are technically attributes of the source font. Many other systems do have provision whereby these attributes can be faked (by skewing for italics, and smudging for bold) though for the time being I have no plans to implement this kind of thing in cegui.

Colour can be changed by splitting text into sections and rendering each section in the desired colour(s).

CE.

User avatar
Van
Just can't stay away
Just can't stay away
Posts: 225
Joined: Fri Jan 21, 2005 20:29
Contact:

Re: Font

Postby Van » Tue Jul 04, 2006 01:01

CrazyEddie wrote:Colour can be changed by splitting text into sections and rendering each section in the desired colour(s).

CE.


Can this be done in the MultiLineEditbox? Of not, what widget supports this and how do I do it?

I am using an MLEB to display some data and would like to change the font and/or font color for each section of data being displayed.

for example:

Title
data here

or

Title
data here


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests