🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Load an embedded font

Started by
0 comments, last by Null and Void 16 years, 9 months ago
how can I use a font loaded in memory (i.e. pointer to data from .ttf file) with Xft? Is it posible or do I have to provide the file some other way?
pushpork
Advertisement
I'm not entirely sure how, but you may be able to specify a file in a new pattern to FontConfig and then have Xft use it. Xft uses FreeType 2 internally and FreeType 2 is able to use a truetype or other supported font loaded into memory. If you're not particularly worried about fitting in with other GUI apps (you are specifying your own font, after all), perhaps using FreeType 2 directly is a solution.

This topic is closed to new replies.

Advertisement