Very simple 8x8 monospace font, typically for 7-bit ASCII characters between 0x20 and 0x7f.
More...
#include <sg_Monospace.hpp>
|
typedef std::vector< bool > | Bitmap |
| Bitmap of a single character, showing which pixels to turn on/off. More...
|
|
typedef std::map< char, Bitmap > | Fontmap |
| Map of every character in this font. More...
|
|
Very simple 8x8 monospace font, typically for 7-bit ASCII characters between 0x20 and 0x7f.
- See also
- SG::Font::EType
-
SG::Font::get()
◆ Bitmap
Bitmap of a single character, showing which pixels to turn on/off.
◆ Fontmap
Map of every character in this font.
◆ Monospace()
SG::Font::Monospace::Monospace |
( |
void |
| ) |
|
◆ ~Monospace()
SG::Font::Monospace::~Monospace |
( |
void |
| ) |
|
|
virtual |
◆ get() [1/2]
virtual Bitmap SG::Font::Monospace::get |
( |
char |
c | ) |
const |
|
inlinevirtual |
Get a bitmap to use for the given ASCII character.
References get_fontmap().
◆ get() [2/2]
◆ get_fontmap()
virtual Fontmap SG::Font::Monospace::get_fontmap |
( |
void |
| ) |
const |
|
pure virtual |
◆ get_height()
virtual size_t SG::Font::Monospace::get_height |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ get_name()
virtual std::string SG::Font::Monospace::get_name |
( |
void |
| ) |
const |
|
pure virtual |
◆ get_width()
virtual size_t SG::Font::Monospace::get_width |
( |
void |
| ) |
const |
|
inlinevirtual |
Get the width of each character.
The documentation for this class was generated from the following files: