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

CBitmappedFont Class Reference

List of all members.

Public Member Functions

 CBitmappedFont (const char *fntFilename=NULL)
 ~CBitmappedFont (void)
int Load (const char *fntFilename)
int LoadRaw (const char *rawFilename)
bool IsCharValid (unsigned char c)
int MaxCharHeight (void)
int MaxCharWidth (void)
int TextWidth (const char *text)
int TextHeight (const char *text)
int CharWidth (unsigned char c)
int CharHeight (unsigned char c)
CBitmappedFontCharGetAscii (unsigned char c)

Public Attributes

bool valid
char rawFilename [64]
int w
int h
int start
int end
unsigned char transparent
int space
int shadow_x
int shadow_y
int maxCharHeight
int maxCharWidth
CBitmappedFontCharchars

Detailed Description

Definition at line 104 of file Fonts.cpp.


Constructor & Destructor Documentation

CBitmappedFont::CBitmappedFont const char *  fntFilename = NULL  ) 
 

Definition at line 142 of file Fonts.cpp.

References chars, end, h, Load(), maxCharHeight, maxCharWidth, rawFilename, shadow_x, shadow_y, space, start, transparent, valid, and w.

CBitmappedFont::~CBitmappedFont void   ) 
 

Definition at line 161 of file Fonts.cpp.

References chars.


Member Function Documentation

int CBitmappedFont::CharHeight unsigned char  c  ) 
 

Definition at line 402 of file Fonts.cpp.

References chars, CBitmappedFontChar::h, IsCharValid(), and start.

Referenced by CharHeight(), and TextHeight().

int CBitmappedFont::CharWidth unsigned char  c  ) 
 

Definition at line 389 of file Fonts.cpp.

References chars, IsCharValid(), space, start, and CBitmappedFontChar::w.

Referenced by CharWidth(), and TextWidth().

CBitmappedFontChar * CBitmappedFont::GetAscii unsigned char  c  ) 
 

Definition at line 413 of file Fonts.cpp.

References chars, IsCharValid(), and start.

Referenced by DrawChar(), and DrawText().

bool CBitmappedFont::IsCharValid unsigned char  c  )  [inline]
 

Definition at line 350 of file Fonts.cpp.

References end, and start.

Referenced by CharHeight(), CharWidth(), and GetAscii().

int CBitmappedFont::Load const char *  fntFilename  ) 
 

Definition at line 185 of file Fonts.cpp.

Referenced by CBitmappedFont().

int CBitmappedFont::LoadRaw const char *  rawFilename  ) 
 

Definition at line 197 of file Fonts.cpp.

References CBitmappedFontChar::ascii, chars, CBitmappedFontChar::end, end, globals, gtfo, CBitmappedFontChar::h, h, SGlobals::logWarning, pclose(), SGlobals::pfs, popen(), pread(), CBitmappedFontChar::SetBit(), CBitmappedFontChar::start, start, transparent, CBitmappedFontChar::w, w, and CLogFile::Write().

Referenced by LoadFont().

int CBitmappedFont::MaxCharHeight void   )  [inline]
 

Definition at line 355 of file Fonts.cpp.

References maxCharHeight.

Referenced by MaxCharHeight().

int CBitmappedFont::MaxCharWidth void   )  [inline]
 

Definition at line 360 of file Fonts.cpp.

References maxCharWidth.

Referenced by MaxCharWidth().

int CBitmappedFont::TextHeight const char *  text  ) 
 

Definition at line 377 of file Fonts.cpp.

References CharHeight().

Referenced by TextHeight().

int CBitmappedFont::TextWidth const char *  text  ) 
 

Definition at line 365 of file Fonts.cpp.

References CharWidth().

Referenced by DrawTextC(), DrawTextR(), and TextWidth().


Member Data Documentation

CBitmappedFontChar* CBitmappedFont::chars
 

Definition at line 134 of file Fonts.cpp.

Referenced by CBitmappedFont(), CharHeight(), CharWidth(), GetAscii(), LoadRaw(), and ~CBitmappedFont().

int CBitmappedFont::end
 

Definition at line 127 of file Fonts.cpp.

Referenced by CBitmappedFont(), IsCharValid(), LoadFont(), and LoadRaw().

int CBitmappedFont::h
 

Definition at line 126 of file Fonts.cpp.

Referenced by CBitmappedFont(), LoadFont(), and LoadRaw().

int CBitmappedFont::maxCharHeight
 

Definition at line 132 of file Fonts.cpp.

Referenced by CBitmappedFont(), and MaxCharHeight().

int CBitmappedFont::maxCharWidth
 

Definition at line 133 of file Fonts.cpp.

Referenced by CBitmappedFont(), and MaxCharWidth().

char CBitmappedFont::rawFilename[64]
 

Definition at line 125 of file Fonts.cpp.

Referenced by CBitmappedFont(), and LoadFont().

int CBitmappedFont::shadow_x
 

Definition at line 130 of file Fonts.cpp.

Referenced by CBitmappedFont().

int CBitmappedFont::shadow_y
 

Definition at line 130 of file Fonts.cpp.

Referenced by CBitmappedFont().

int CBitmappedFont::space
 

Definition at line 129 of file Fonts.cpp.

Referenced by CBitmappedFont(), CharWidth(), DrawText(), and LoadFont().

int CBitmappedFont::start
 

Definition at line 127 of file Fonts.cpp.

Referenced by CBitmappedFont(), CharHeight(), CharWidth(), GetAscii(), IsCharValid(), LoadFont(), and LoadRaw().

unsigned char CBitmappedFont::transparent
 

Definition at line 128 of file Fonts.cpp.

Referenced by CBitmappedFont(), and LoadRaw().

bool CBitmappedFont::valid
 

Definition at line 123 of file Fonts.cpp.

Referenced by CBitmappedFont().

int CBitmappedFont::w
 

Definition at line 126 of file Fonts.cpp.

Referenced by CBitmappedFont(), LoadFont(), and LoadRaw().


The documentation for this class was generated from the following file:
SourceForge.net Logo Documentation generated by doxygen