views:

49

answers:

2

Hi, I have a new project assigned to me today. I need to load a TTF file and then write the specified string to a bitmap using that font. However, I do not have much information about the TTF structure. Is there any library specifically for this job?

A: 

http://www.google.com/search?q=libttf

http://www.google.com/search?q=c+write+bitmap

jsumners
First hit is FreeType library, what I used once for the job.
Dummy00001
thank you, FreeType does not provide a function to draw bitmap. How can I do that?
A: 

I suggest you have a look at the SDL_ttf project. SDL is also a good start to build a small gfx app.

Here is also a useful tutorial aboud using SDL_ttf in OpenGL and rendering text as textures.

epatel
well, the thing is I cannot use opengl orany big library bec I have limited resources