|
VideoTools
|
A class for mapping characters to 8x8 glyphs. More...
#include <grglyph.h>
Public Types | |
| typedef std::vector< bool > | row_type |
| typedef std::vector< row_type > | matrix_type |
Static Public Member Functions | |
| static matrix_type | matrix (char c) |
| Returns a glyph matrix for the given character. | |
| template<typename Tout > | |
| static void | output (const std::string &s, Tout &out_functor) |
| Calls an (x,y,bool) functor for all the glyph points corresponding to the given line of text, with no support for line-wrapping. More... | |
|
static |
Calls an (x,y,bool) functor for all the glyph points corresponding to the given line of text, with no support for line-wrapping.
The functor call order is suitable for a raster scan, ie. the x parameter varies fastest and traverses the whole string before the y parameter is incremented.
An 'off' pixel is added at the end of each characer raster scan (including the last character), so there are nine horizontal pixels per character and a total of eight vertical pixels.