21 win_font::win_font(
char * fic)
27 win_font::win_font(
win_font & tmpfont)
36 void win_font::erase()
38 if(cursor)
delete cursor;
43 void win_font::load(
char * rep)
51 string path = WIN_DIRECTORY;
54 path += WIN_FONT_DIRECTORY;
57 path += string (rep) +
"/";
60 path += WIN_FONT_FILE;
65 cout << path <<
" not found !\n";
86 if(i>0 && i<WIN_NB_TABLE_CHAR)
89 font->
draw (0, 0, pos, 0, tl + 1, font->
height () -1, NULL, glph);
96 length_=glyphs[
' ']->length();
104 bool win_font::in_table(
u_int16 tmp)
106 if (glyphs.find (tmp) != glyphs.end ())
return true;
112 if (in_table (i))
return *(glyphs[i]);
113 else return *(glyphs[
' ']);