Bitmap fonts

Member
Posts: 117
Joined: 2010.09
Post: #1
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
Quote this message in a reply
Member
Posts: 65
Joined: 2009.03
Post: #2
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 Smile

MikeD

iPhone Game Development Blog - 71Squared
Quote this message in a reply
Member
Posts: 117
Joined: 2010.09
Post: #3
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
Quote this message in a reply
Member
Posts: 446
Joined: 2002.09
Post: #4
(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/
Quote this message in a reply
Member
Posts: 117
Joined: 2010.09
Post: #5
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
Quote this message in a reply
Member
Posts: 446
Joined: 2002.09
Post: #6
(Feb 27, 2011 09:14 AM)markhula Wrote:  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.
I said that code was "helpful" not a drop-in solution Wink

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.
Quote this message in a reply
Member
Posts: 117
Joined: 2010.09
Post: #7
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! :-)))
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How do I flip upside down fonts in FTGL mr5z 4 1,313 Mar 3, 2014 03:36 PM
Last Post: JustinFic
  Anyone experienced Performance ± with UILabels vs. Bitmap Font in OpenGL ES 1.1? Elphaba 3 4,466 Jul 28, 2009 10:40 AM
Last Post: AnotherJake
  Bitmap font toolkit Najdorf 9 6,993 Nov 11, 2008 05:43 PM
Last Post: Najdorf
  Anti-aliased bitmapped fonts Jake 12 6,953 Nov 19, 2007 05:02 PM
Last Post: Jake
  shared context breaking FTGL texture fonts akb825 12 6,627 Sep 7, 2006 08:56 PM
Last Post: akb825