Change font color

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

geniephics
Just popping in
Just popping in
Posts: 8
Joined: Wed Nov 05, 2008 08:38

Change font color

Postby geniephics » Mon Nov 10, 2008 11:44

Code: Select all

<?xml version="1.0" ?>
<Font Name="Arial_12_Bold" Filename="Arial_Bold.ttf" Type="FreeType" Size="12" NativeHorzRes="1024" NativeVertRes="768" AutoScaled="false" AntiAlias="true" NormalColorText ="FF000000" />


Hi, is it possible to set font color over here .font?

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

Postby CrazyEddie » Mon Nov 10, 2008 12:32

Hi,

No. The font just represents the text glyphs and has no colour associated with it; colours are generally set elsewhere such as on a Window (that then uses the font to draw text in the requested colour).

HTH

CE.

geniephics
Just popping in
Just popping in
Posts: 8
Joined: Wed Nov 05, 2008 08:38

Postby geniephics » Mon Nov 10, 2008 14:23

ok. noted. i've actually set the color in the window.

thanks CE. you're the man! :P


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests