Create a bmp of a string using a TTF file using C?
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?
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.
精彩评论