Cap Rouge is a very simple monospace font for 7-bit ASCII characters between 32 and 127. More...
#include <sg_8x8_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 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 size_t | get_width (void) const |
Get the width of each character. More... | |
virtual size_t | get_height (void) const |
Get the height of each character. More... | |
virtual Bitmap | get (char c) const |
Get a bitmap to use for the given ASCII character. More... | |
virtual Bitmap | get (char c, const Fontmap &font_map) const |
Cap Rouge is a very simple monospace font for 7-bit ASCII characters between 32 and 127.
The size of 8x8 includes vertical and horizontal blank space needed between characters. For Cap Rouge, this means a blank row on the bottom, and a blank column on the left. Without the blank space, the actual characters are 7x7 (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::Font::CapRouge::CapRouge | ( | void | ) |
Constructor.
|
virtual |
Destructor.
|
inlinevirtualinherited |
Get a bitmap to use for the given ASCII character.
References SG::Font::Monospace::get_fontmap().
|
virtualinherited |
std::invalid_argument | if the character isn't available in the given font. |
References SG::Font::Monospace::get_name(), and SG::BeagleBone::Detect::to_string().
|
virtual |
Get the actual font bitmap.
Implements SG::Font::Monospace.
Referenced by get_name().
|
inlinevirtualinherited |
Get the height of each character.
References SG::Font::Monospace::get_fontmap(), and SG::Font::Monospace::get_name().
|
inlinevirtual |
Get the font name. For Cap Rouge, this will always return Cap Rouge
.
Implements SG::Font::Monospace.
References get_fontmap().
|
inlinevirtualinherited |
Get the width of each character.