Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Integrating Pango Font Loading Library into C++ project

$
0
0
Hello community! I am currently trying to implement text rendering into my C++ game engine, which is based on OpenGL with GLFW. I had text rendering working with the FreeType Library, but unfortunately it does not support GPOS Tables for Kerning, which seems to be used by most fonts nowadays. So this is why I want to switch to the Pango Library, which is said to support GPOS Tables. But unfortunately I could not find any guides on how to install or use this library and i do not have enough experience yet to figure it out by myself. On the Pango website they say Pango depends on a few font backends, either: - FreeType, fontconfig and Harfbuzz - Uniscribe and Cairo (Windows only?) - CoreText and Cairo (MacOSX only?) But I do not know which to choose. All I really need is a library which can read .ttf files and render the contained glyphs into simple bitmaps along with providing metric information and kerning maps. I will then store all the glyphs in an atlas texture and handle the screen rendering and text layout myself. Furthermore, I need help installing these backends together with Pango. Can anyone help me with this?

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>