Quote:Original post by WitchLord
specify somewhere in the info tag the TGA filename (e.g. fontfile_00.tga) - I don't see much use for this, but I suppose I could add a new tag for the texture file names
I think it is useful to allow using only the FNT file as the main specification file; parsing the proper field(s) would allow the program to load the associated bitmap files
Quote:specify the 'size' attribute before the 'face' attribute in the text FNT file(this may help reading through scanf-based C functions) - This just don't make sense. Why would the order of the attributes make a difference for scanf? Could you show me an example?
It is just for optimization, however it is not critically important. Here is the example, about retrieving
only the charset size information.
FILE *f;int charset_size;// Optimized versionfscanf(f, "info size=%d", &charset_size);// Current versionchar useless_buffer[100];fscanf(f, "info face=\"%[A-Za-z ]\" size=%d", useless_buffer, &charset_size);
Quote:
attribute-less XML format, some XML parser comes unhandy with attributes. A full XML tree approach would be better. I suggest each attribute being a tag subchild and removing the <autoclosed /> tag style - I don't agree with this. If your XML parser can't handle attributes, you should consider exchanging it for another. It's not difficult to implement in your own XML parser. Or if you prefer to use a 3rd party library then TinyXML is an excellent one.
Mmmh..you're right, indeed. However I think I will implement it myself.
Quote:raw 8/16/24bit output of font data, instead of a TGA one (less important) - Why do you want the raw data? And why can't you take it from the TGA file?
Let's suppose I do not want to implement TGA files...I think it maybe easy to directly read the data from an 8bit
uncompressed TGA...however I should have to use TGA in some way if I cannot get the raw data.
Quote:make BMfont OS-independent using freetype - Perhaps I'll do this someday, but it would require considerable work.
I don't know, however implementing freetype is enough easy...the most hard part would be to rewrite windows-related code
Quote:a command-line tool for 1-step conversion between fonts and (FNT, TGA|RAW) sets - This makes sense. I'll see if I can do this.
Simply great.