A while ago you wanted to add libtiff or whatever to generate a default font, I just ran across the fact of font_add.
int font_add(string name, int size, bool bold, bool italic, unsigned char first, unsigned char last) { int res = enigma::font_new(first, last-first); enigma::font *fnt = enigma::fontstructarray[res]; fnt->name = name; fnt->fontsize = size; fnt->bold = bold; fnt->italic = italic; fnt->glyphstart = first; fnt->glyphcount = last-first; return res; }
That is the current implementation of font_add, I don't know if that even works or not, but I doubt it, because nothing is rendering the glyphs. A test should be done to see if this function works or not, and if it does not you can freely add libtiff to generate a default font, though the IDE should still render the fonts and place inside the GMX/EGM for later usage, I am only talking of for this function and for a default font.
|