Faith::Font Class Reference

A font to draw text with. More...

#include <faith/font.h>

List of all members.

Public Types

 Light = 25
 Normal = 50
 DemiBold = 63
 Bold = 75
 Black = 87
enum  Weight {
  Light = 25, Normal = 50, DemiBold = 63, Bold = 75,
  Black = 87
}

Public Member Functions

 Font ()
 Font (const Font &copy)
 Font (const String &family, int points=12, int weight=Normal, bool oblique=false)
 ~Font ()
Fontoperator= (const Font &copy)
bool operator== (const Font &other) const
Handle x11Handle ()
void * xftHandle ()
String filename () const
String family () const
int pointSize () const


Detailed Description

A font to draw text with.


Member Enumeration Documentation

enum Faith::Font::Weight

Specifies the "Boldness" of the font

Enumerator:
Light 
Normal 
DemiBold 
Bold 
Black 


Constructor & Destructor Documentation

Faith::Font::Font (  ) 

Uses the default font

Faith::Font::Font ( const Font copy  ) 

Makes a duplicate of the given font object

Faith::Font::Font ( const String family,
int  points = 12,
int  weight = Normal,
bool  oblique = false 
)

creates a font with the given font family, point size, weight, and italicity

Faith::Font::~Font (  ) 


Member Function Documentation

String Faith::Font::family (  )  const

Returns:
the font family, like "Helvetica" or "Nimbus Sans"

String Faith::Font::filename (  )  const

Returns:
the file that the font lives in, if this is so available, or an empty string otherwise

Font& Faith::Font::operator= ( const Font copy  ) 

Makes this a duplicate of copy

bool Faith::Font::operator== ( const Font other  )  const

Returns:
true if other is the same as this

int Faith::Font::pointSize (  )  const

Returns:
the point size of this font

Handle Faith::Font::x11Handle (  ) 

void* Faith::Font::xftHandle (  ) 


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:09 2006 for Faith by  doxygen 1.4.7