|
ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
a font created from an Image More...
#include <imagefont.h>
Public Member Functions | |
| ImageFont () | |
| Standardconstructor. More... | |
| ImageFont (const String &fname, const String &glyphs) | |
| ~ImageFont () ROLAND_DEFAULT void init() | |
| Standarddestructor. More... | |
| void | clear () |
| Frees all used resources. More... | |
| void | load (const String &fname, const String &glyphs, uchar alpha=255) |
| const Rect & | glyph (Uint8 chr) const |
| const Image & | image () |
| void | setSpacing (Uint16 spacing) |
| Uint16 | spacing () const |
Private Attributes | |
| Image | mImage |
| String | mGlyphs |
| Rect | mGlyphRect [256] |
| Uint16 | mSpacing |
a font created from an Image
|
inline |
Standardconstructor.
References ImageFont::clear(), ImageFont::glyph(), init(), ImageFont::load(), ROLAND_DEFAULT, and ImageFont::~ImageFont().
Constructor, calls ImageFont::load to load an Image
References Image::height(), init(), ImageFont::load(), ImageFont::mGlyphRect, ImageFont::mImage, Image::pixel(), Rect::setHeight(), Rect::setPos(), Rect::setWidth(), Image::width(), and x.
| ~ImageFont | ( | ) |
Standarddestructor.
Check whether the Image is valid and sets up the glyphs and their Rect class
Referenced by ImageFont::ImageFont().
| void clear | ( | ) |
Frees all used resources.
References Image::clear(), and ImageFont::mImage.
Referenced by ImageFont::ImageFont(), and ImageFont::load().
|
inline |
References ImageFont::mGlyphRect, and ImageFont::mGlyphs.
Referenced by ImageFont::ImageFont(), Canvas::textHeight(), Canvas::textSize(), and Canvas::write().
|
inline |
References ImageFont::mImage, ImageFont::setSpacing(), and ImageFont::spacing().
Referenced by Canvas::write().
loads an Image and calls ImageFont::init to set up the glyphs
References ImageFont::clear(), Image::convert(), init(), Image::load(), ImageFont::mGlyphs, and ImageFont::mImage.
Referenced by ImageFont::ImageFont(), and Canvas::setFont().
| void setSpacing | ( | Uint16 | spacing | ) |
Referenced by ImageFont::image().
|
inline |
References ImageFont::mSpacing.
Referenced by ImageFont::image(), Canvas::textSize(), and Canvas::write().
|
private |
Referenced by ImageFont::glyph(), and ImageFont::ImageFont().
|
private |
Referenced by ImageFont::glyph(), and ImageFont::load().
|
private |
Referenced by ImageFont::clear(), ImageFont::image(), ImageFont::ImageFont(), and ImageFont::load().
|
private |
Referenced by ImageFont::spacing().
1.8.11