class AFont

An abstract font class.

Inheritance:


Public Fields

static const int HELVETICA
Helvetica font family.
static const int TIMESROMAN
Times Roman font family.
static const int COURIER
Courier (fixed width) font family.
static const int NEWCENTURYSCHLBK
New century schoolbook font family.
static const int SYMBOL
Symbol font family.
static const int PLAIN
Plain style constant. Can be mixed with other style constants.
static const int BOLD
Bold style constant. Can be mixed with other style constants.
static const int ITALIC
Italicized style constant. Can be mixed with other style constants.

Public Methods

AFont (const string* foundry, int name, int style, int size, bool scalable)
Creates new font with the specified name, style and point size.
int GetFamily ()
Gets the family name of the font.
int GetStyle ()
Gets the style of the font.
int GetSize ()
Gets the point size of the font.
bool IsScalable ()
Is the font scalable.
const string* GetFoundry ()
void SetScalable (bool b)
bool IsUnderlined ()
Is the font underlined.
void SetUnderlined (bool b)
Set/Unset font underlined option
double GetFactor ()
The factor with which a scalable font is scaled.
void SetFactor (double d)
bool IsPlain ()
Returns true if the font is plain.
bool IsBold ()
Returns true if the font is bold.
bool IsItalic ()
Returns true if the font is italic.

Documentation

An abstract font class.
static const int HELVETICA
Helvetica font family.

static const int TIMESROMAN
Times Roman font family.

static const int COURIER
Courier (fixed width) font family.

static const int NEWCENTURYSCHLBK
New century schoolbook font family.

static const int SYMBOL
Symbol font family.

static const int PLAIN
Plain style constant. Can be mixed with other style constants.

static const int BOLD
Bold style constant. Can be mixed with other style constants.

static const int ITALIC
Italicized style constant. Can be mixed with other style constants.

AFont(const string* foundry, int name, int style, int size, bool scalable)
Creates new font with the specified name, style and point size.

int GetFamily()
Gets the family name of the font.

int GetStyle()
Gets the style of the font.

int GetSize()
Gets the point size of the font.

bool IsScalable()
Is the font scalable.

const string* GetFoundry()

void SetScalable(bool b)

bool IsUnderlined()
Is the font underlined.

void SetUnderlined(bool b)
Set/Unset font underlined option

double GetFactor()
The factor with which a scalable font is scaled.

void SetFactor(double d)

bool IsPlain()
Returns true if the font is plain.

bool IsBold()
Returns true if the font is bold.

bool IsItalic()
Returns true if the font is italic.


Direct child classes:
XFont

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de