Use font without installing? - ID3DXFont

Started by
1 comment, last by outlawhacker 19 years, 2 months ago
Hey, I was wondering if there's any way to use TrueType fonts with ID3DXFont, without having installed them in Windows? If I have my own TrueType font and I would like people to play my game without needing to install the font - would I have to write my own font engine? Thanks
Advertisement
You can use AddFontResource (GDI) to add it to the system font list and then use it as if it were installed. Call RemoveFontResource to remove it from the system list when your application is done.

Stay Casual,KenDrunken Hyena
Aha, cool!

Sounds like something that would work for me. I'll look that up. Thanks!

This topic is closed to new replies.

Advertisement