![]() |
|
Bitmap fonts - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Graphics & Audio Programming (/forum-9.html) +--- Thread: Bitmap fonts (/thread-8653.html) |
Bitmap fonts - markhula - Feb 18, 2011 10:31 AM Hi all, I can see this has been asked before; but I still can't find what I want. 71squared Glyph looks perfect but everything is designed for Obj-C. I guess I am looking for a font to bitmap converter that's output is the bitmap (obviously); the font data in XML format and then a straight 'C' draw func. I am trying to be platform independent. Can anyone please help? Cheers RE: Bitmap fonts - MikeD - Feb 18, 2011 12:32 PM The only C implementation I'm aware of that makes use of the AngelCode font descriptor file format can be found at http://sourceforge.net/projects/oglbmfont/ This uses OpenGL and C to process and render the bitmap font and should work fine with the output from Glyph Designer ![]() MikeD RE: Bitmap fonts - markhula - Feb 19, 2011 10:21 AM Hi again Mike! ;-) It does look promising but I do notice (only a brief look) that it includes a few libs. I *hope* they aren't anything tricky or complex and are just out of convenience!! I really want to use your Glyph because it looks so cool!! Cheers again RE: Bitmap fonts - Frank C. - Feb 19, 2011 01:22 PM (Feb 18, 2011 12:32 PM)MikeD Wrote: http://sourceforge.net/projects/oglbmfont/The loader might be serviceable but unfortunately the GL code is quite old and ugly. I was on the hunt for a plain-C OpenGLES implementation a couple weeks back as well but gave up and rolled my own. I can't really offer up any code (it's tied heavily to the rest of my framework) but it wasn't as much work as I initially thought. I found the official C++/DirectX code to be the most helpful: http://www.angelcode.com/toolbox/ RE: Bitmap fonts - markhula - Feb 27, 2011 09:14 AM Hmmmm! It's all rather messy; with extra libs and "stuff" in. Was really just looking for a straight C clean loader (parser I guess);. Some LineIn,RWops etc. etc. No-one do 'C' anymore!? :-( Would appreciate any straight 'C' implementation!!, I don't know obj-c,java and every other permutation I can find. Cheers RE: Bitmap fonts - Frank C. - Feb 27, 2011 12:46 PM (Feb 27, 2011 09:14 AM)markhula Wrote: Hmmmm!I said that code was "helpful" not a drop-in solution ![]() Efficiently creating meshes can be tricky, but parsing is simple. I just grab each line with fgets, do a few strncmp's on the first word to see what kind of data I can expect, then parse the whole line with a single sscanf. I.e. "real" C - no need for that rwops crap. RE: Bitmap fonts - markhula - Feb 27, 2011 12:55 PM LOL! I know, I'm just being lazy and assumed someone else would of done this in 'C' Writing my own anyway; probably be quicker than googling everywhere for it! :-)))) Cheers Real men do it with: Real 'C' (or assembler!!! ; ah..... LDMFD R13!,{R0-R9}) - the good old days! :-))) |