CapRouge is a very simple monospace font for 7-bit ASCII characters between 0 and 127. More...
#include <sg_CapRouge.hpp>


Public Types | |
| 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... | |
Public Member Functions | |
| CapRouge (void) | |
| Constructor. More... | |
| virtual | ~CapRouge (void) |
| Destructor. More... | |
| virtual size_t | get_width (void) const |
Get the width of each character. For Cap Rouge, this will always return 6. More... | |
| virtual size_t | get_height (void) const |
Get the height of each character. For Cap Rouge, this will always return 8. More... | |
| virtual std::string | get_name (void) const |
Get the font name. For Cap Rouge, this will always return Cap Rouge. More... | |
| virtual Fontmap | get_fontmap (void) const |
| Get the actual font bitmap. More... | |
| virtual Bitmap | get (char c) const |
| Get a bitmap to use for the given 7-bit ASCII character. More... | |
| virtual Bitmap | get (char c, const Fontmap &font_map) const |
CapRouge is a very simple monospace font for 7-bit ASCII characters between 0 and 127.
The size of 6x8 includes vertical and horizontal blank space needed between characters. This means a blank row on top, and a blank column on the right. Without the blank space, the actual characters are 5x7 (or smaller and padded).
|
inherited |
Bitmap of a single character, showing which pixels to turn on/off.
|
inherited |
Map of every character in this font.
| SG::CapRouge::CapRouge | ( | void | ) |
Constructor.
|
virtual |
Destructor.
|
virtualinherited |
Get a bitmap to use for the given 7-bit ASCII character.
|
virtualinherited |
| std::invalid_argument | if the character isn't available in the given font. |
References SG::BeagleBone::to_string().

|
virtual |
Get the actual font bitmap.
Implements SG::MonospaceFont.
|
inlinevirtual |
Get the height of each character. For Cap Rouge, this will always return 8.
Implements SG::MonospaceFont.
|
inlinevirtual |
Get the font name. For Cap Rouge, this will always return Cap Rouge.
Implements SG::MonospaceFont.
|
inlinevirtual |
Get the width of each character. For Cap Rouge, this will always return 6.
Implements SG::MonospaceFont.