39 typedef std::vector<bool> row_type ;
40 typedef std::vector<row_type> matrix_type ;
42 static matrix_type
matrix(
char c ) ;
45 template <
typename Tout>
46 static void output(
const std::string & s , Tout & out_functor ) ;
60 static bool point(
char ,
unsigned int ,
unsigned int ) ;
61 static unsigned int * row(
char ) ;
66 template <
typename Tout>
69 for(
unsigned int dy = 0U ; dy < 8U ; dy++ )
72 std::string::const_iterator
const end = s.end() ;
73 for( std::string::const_iterator p = s.begin() ; p != end ; ++p , n++ )
75 for(
unsigned int dx = 0U ; dx < 8U ; dx++ )
76 out( (n*9U) + dx , dy , point(*p,dx,dy) ) ;
77 out( (n*9U) + 8U , dy ,
false ) ;
static matrix_type matrix(char c)
Returns a glyph matrix for the given character.
A class for mapping characters to 8x8 glyphs.
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...