D3DXCreateFont and downloaded fonts

Started by
1 comment, last by oldskoolPunk 17 years, 2 months ago
How can I use TrueType fonts that I have downloaded without them being installed on my system? I would like to include the font with my executable so it displays on any computer, whether the font is installed or not, but it only seems to work if I install it in my Windows/Fonts directory. I have found a really cool font site, that has alot of fonts for download. Some are free for commercial use and some for personal use only. So make sure to note this when downloading, it is posted right beside the font. [link]http://www.dafont.com/[/link]
signature? I ain't signin nuthin!
Advertisement
AddFontMemResourceEx is probably what you want. That registers the font for your process only, and unregisters it when the process terminates (So you're not cluttering up the users Fonts directory). There's also AddFontResourceEx.
Thanks Evil Steve, I appreciate your help. I could not find this information.
signature? I ain't signin nuthin!

This topic is closed to new replies.

Advertisement