General Development

Fonts – gingerellies

gingerellies

Member

Posts: 50
From: Orlando, FL
Registered: 05-28-2002
Hi, I am wanting to implement my very own font engine. Unimportant is what the font looks like (except that I want to be able to support variable sized fonts), important is the code behind the font. Does anyone out there know of any resources or tutorials on this topic. I am not using any predefined libraries, I need to basically make my own. I hope this is clear. Thank you in advance for any help.

------------------
God bless and keep you!
-Ginger

HanClinto

Administrator

Posts: 1828
From: Indiana
Registered: 10-11-2004
While it's not important for the theory behind how font engines work, what language would you like the examples to be in?

Also, what graphical toolkit are you using? SDL? DirectX? GDI? OpenGL? Torque? Blitz?

Thanks!

--clint

------------------
http://www.includingjudas.com/christiangame.html

gingerellies

Member

Posts: 50
From: Orlando, FL
Registered: 05-28-2002
well, the theory behind the engine would be important. What the font looks like isn't important, just the size. I'm not using a toolkit, it's for a custom engine.

------------------
God bless and keep you!
-Ginger

HanClinto

Administrator

Posts: 1828
From: Indiana
Registered: 10-11-2004
Interesting, okay.

Do you have a preference as far as what kind of font you'll implement? I.E. bitmap, or something more complex like truetype/postscript?

The only direction I can think to point you in is Pango, which is an open-source text-rendering engine. It is used extensively within GTK to do the font-rendering there, but it can be used to render fonts to anything, including directly to memory (so that it doesn't even care what you're using to draw your graphics). It supports a wide variety of font formats, and seems to be fairly generic and flexible.

They have a decent looking reference manual on their site, which might help you in explaining some of the theory of creating a font renderer.

Hope that helps!

--clint

------------------
http://www.includingjudas.com/christiangame.html