Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我今天有一个新项目分配给我。我需要加载一个 TTF 文件,然后使用该字体将指定的字符串写入位图。但是,我没有太多关于 TTF 结构的信息。有没有专门针对这项工作的图书馆?
我建议你看看SDL_ttf项目。SDL 也是构建小型 gfx 应用程序的良好开端。
这也是一个有用的教程,关于在 OpenGL 中使用 SDL_ttf 并将文本渲染为纹理。