开发者

Create a bmp of a string using a TTF file using C?

开发者 https://www.devze.com 2023-01-05 10:09 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消