Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GTypeFace Class Reference

Font parameters collection. More...

#include <GFont.h>

Inheritance diagram for GTypeFace:

GFont List of all members.

Public Member Functions

void Face (char *s)
 Sets the font face name.
void PointSize (int i)
 Sets the point size.
void TabSize (int i)
 Sets the tab size in device units (pixels).
void Quality (int i)
 Sets the quality resquested, use one of DEFAULT_QUALITY, ANTIALIASED_QUALITY or NONANTIALIASED_QUALITY.
void Fore (COLOUR c)
 Sets the foreground colour as a 24 bit RGB value.
void Back (COLOUR c)
void SetWeight (int Weight)
 Sets the font's weight, use one the weight defines in GFont.h, e.g. FW_NORMAL, FW_BOLD.
void Bold (bool i)
 Set a bold font.
void Italic (bool i)
 Sets the font to italic.
void Underline (bool i)
 Draws with an underline.
void Transparent (bool i)
 Makes the text have no background.
void SubGlyphs (bool i)
 Turns glyph substitution on or off.
char * Face ()
 Get the font face.
int PointSize ()
 Get the point size.
int TabSize ()
 Gets the tabsize in pixels.
int Quality ()
 Gets the quality setting.
COLOUR Fore ()
 Gets the foreground colour in 24bit RGB.
COLOUR Back ()
 Gets the background colour in 24bit RGB.
int GetWeight ()
 Returns the font weight.
bool Bold ()
 Returns true if this is a bold font.
bool Italic ()
 Returns true if this is a italic font.
bool Underline ()
 Returns true if this font is drawn with an underline.
bool Transparent ()
 Returns true if no background will be drawn.
bool SubGlyphs ()
 Returns true if glyph substitution will be done.
double Ascent ()
 Returns the amount of space above the baseline.
double Descent ()
 Returns the amount of space below the baseline.
virtual void Colour (COLOUR Fore, COLOUR Back=0xFFFFFFFF)

Detailed Description

Font parameters collection.


Member Function Documentation

void GTypeFace::Back COLOUR  c  ) 
 

Sets the background colour as a 24 bit RGB value. In most systems this is not important, but on BeOS the anti-aliasing is done from the foreground colour to the background colour with no regards for what is underneath the rendered text, thus you need to set the back colour correctly

virtual void GTypeFace::Colour COLOUR  Fore,
COLOUR  Back = 0xFFFFFFFF
[virtual]
 

Set the foreground and background colour.

See also:
GTypeFace::Fore() and GTypeFace::Back()


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:47:04 2005 for Lgi by  doxygen 1.4.1