FontBase Class Reference

A class which all Oil level fonts should be derived from. Its really an abstract class but contains some other functionaity too. More...

#include <fontbase.h>

Inheritance diagram for FontBase:

CCObject SimpleCCObject ATMFont FTFont TTFont List of all members.

Public Member Functions

 FontBase ()
 Default constructor.
virtual BOOL Initialise (String_64 *pFontName)
 Initialises the OILFont font class.
virtual BOOL Compare (String_64 *pFontName)
 Compare one font item name with an other.
virtual FontClass GetFontClass ()
virtual String_64GetFontName ()
virtual void Delete ()
 Deletes the contents of a OILFont font class.
virtual void Dump ()
 


Protected Attributes

String_64 TheFontName

Detailed Description

A class which all Oil level fonts should be derived from. Its really an abstract class but contains some other functionaity too.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/9/95

Definition at line 138 of file fontbase.h.


Constructor & Destructor Documentation

FontBase::FontBase  ) 
 

Default constructor.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/09/95

Definition at line 1460 of file fontbase.cpp.

01461 {
01462 }


Member Function Documentation

BOOL FontBase::Compare String_64 pFontName  )  [virtual]
 

Compare one font item name with an other.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/09/95
Parameters:
pFontName = A pointer to a font name [INPUTS] Class = The font class
Returns:
TRUE if the font name on entry matchs that of this cached font

Definition at line 1514 of file fontbase.cpp.

01515 {
01516     return ((TheFontName.CompareTo(*pFontName)) == 0);
01517 }

void FontBase::Delete  )  [virtual]
 

Deletes the contents of a OILFont font class.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/09/95
Parameters:
- [INPUTS]
Returns:
-

Definition at line 1495 of file fontbase.cpp.

01496 {
01497     ERROR3("Error Error, FontBase::Delete() called - bad derivation / v-table corrupted");
01498 }

void FontBase::Dump  )  [virtual]
 

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/09/95
Parameters:
- [INPUTS]
Returns:
-

Reimplemented in ATMFont, FTFont, and TTFont.

Definition at line 1533 of file fontbase.cpp.

01534 {
01535     TRACE( _T(" Font name = %s\n"),((TCHAR*)TheFontName));
01536 }

virtual FontClass FontBase::GetFontClass  )  [inline, virtual]
 

Reimplemented in ATMFont, FTFont, and TTFont.

Definition at line 147 of file fontbase.h.

00147 { return FC_UNDEFINED; }

virtual String_64* FontBase::GetFontName  )  [inline, virtual]
 

Definition at line 148 of file fontbase.h.

00148 { return &TheFontName; }

BOOL FontBase::Initialise String_64 pFontName  )  [virtual]
 

Initialises the OILFont font class.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/09/95
Parameters:
pFontName = A pointer to a font name [INPUTS]

Definition at line 1476 of file fontbase.cpp.

01477 {
01478     TheFontName = *pFontName;
01479     return TRUE;
01480 }


Member Data Documentation

String_64 FontBase::TheFontName [protected]
 

Definition at line 154 of file fontbase.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:54:27 2007 for Camelot by  doxygen 1.4.4