class Font

A font contains 256 characters in the Sprite form

Public Methods

Font(Ini& ini) throw(Exception)
Font(const Font& font, Pixel fontColor, Pixel backgroundColor) throw()
Font(const Font& font, Pixel fontColor) throw()
Font(const Font& font) throw()
virtual ~Font() throw()
virtual const Sprite* get(char c) const throw()
virtual int nbLine() const throw()
virtual int nbColumn() const throw()
virtual Pixel getFontColor() const throw()
virtual Pixel getBackgroundColor() const throw()

Protected Fields

Array < Sprite * > alphabet
Tji size
Pixel fontColor
Pixel backgroundColor

Protected Methods

void setColor(Pixel oldFontColor) throw()
void copyOther(const Font& font) throw()

Documentation

A font contains 256 characters in the Sprite form. The file must contains the 256 characters in one line, so Font can recognize the width and the height of one character (see Character/font.gif)
Array < Sprite * > alphabet

Tji size

Pixel fontColor

Pixel backgroundColor

void setColor(Pixel oldFontColor) throw()

void copyOther(const Font& font) throw()

Font(Ini& ini) throw(Exception)

Font(const Font& font, Pixel fontColor, Pixel backgroundColor) throw()

Font(const Font& font, Pixel fontColor) throw()

Font(const Font& font) throw()

virtual ~Font() throw()

virtual const Sprite* get(char c) const throw()

virtual int nbLine() const throw()

virtual int nbColumn() const throw()

virtual Pixel getFontColor() const throw()

virtual Pixel getBackgroundColor() const throw()


This class has no child classes.
Author:
David FAUTHOUX
See Also:
Strip
StripContainer
PixelMatrix

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