Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

Font Class Reference
[Graphics]

Inheritance diagram for Font:

XMLObject

List of all members.


Classes

struct  Bounds
struct  Character
struct  Kerning

Public Member Functions

 Font ()
 Font (const Asset &asset)
 Font (const Filename &filename)
 ~Font ()
void Blit (Bitmap &bitmap, int x, int y, const char *text, int spacing=0, unsigned short modulate=0xffff, unsigned char alpha=255) const
void BlitWrap (Bitmap &bitmap, int x, int y, const char *text, int width, int hspacing=0, int vspacing=0, unsigned short modulate=0xffff, unsigned char alpha=255) const
Bounds GetBounds (const char *text, int spacing=0) const
Bounds GetBoundsWrap (const char *text, int width, int hspacing=0, int vspacing=0) const
int GetBaseline () const
int GetSize () const
int GetGlyphHeight () const
void WriteToAsset (Asset *asset)
void ReadFromAsset (const Asset *asset)
void ReadFromAssetNew (const Asset *asset)

Detailed Description

Author:
Mattias Gustavsson
Todo:
Cleanup and prioritize new format

Definition at line 23 of file Font.h.


Constructor & Destructor Documentation

Font::Font (  ) 

Definition at line 15 of file Font.cpp.

Font::Font ( const Asset asset  ) 

Definition at line 26 of file Font.cpp.

Font::Font ( const Filename filename  ) 

Definition at line 90 of file Font.cpp.

Font::~Font (  ) 

Definition at line 234 of file Font.cpp.


Member Function Documentation

void Font::Blit ( Bitmap bitmap,
int  x,
int  y,
const char *  text,
int  spacing = 0,
unsigned short  modulate = 0xffff,
unsigned char  alpha = 255 
) const

Definition at line 264 of file Font.cpp.

void Font::BlitWrap ( Bitmap bitmap,
int  x,
int  y,
const char *  text,
int  width,
int  hspacing = 0,
int  vspacing = 0,
unsigned short  modulate = 0xffff,
unsigned char  alpha = 255 
) const

Definition at line 341 of file Font.cpp.

Font::Bounds Font::GetBounds ( const char *  text,
int  spacing = 0 
) const

Definition at line 409 of file Font.cpp.

Font::Bounds Font::GetBoundsWrap ( const char *  text,
int  width,
int  hspacing = 0,
int  vspacing = 0 
) const

Definition at line 444 of file Font.cpp.

int Font::GetBaseline (  )  const

Definition at line 386 of file Font.cpp.

int Font::GetSize (  )  const

Definition at line 394 of file Font.cpp.

int Font::GetGlyphHeight (  )  const

Definition at line 402 of file Font.cpp.

void Font::WriteToAsset ( Asset asset  ) 

Definition at line 594 of file Font.cpp.

void Font::ReadFromAsset ( const Asset asset  ) 

Definition at line 545 of file Font.cpp.

void Font::ReadFromAssetNew ( const Asset asset  ) 

Definition at line 633 of file Font.cpp.



Pixie University and the Pixie Game Engine is created and managed by Mattias Gustavsson.
Reproduction/republishing of any material on this site without permission is strictly prohibited.