Sign in to follow this  
gael

Loading a font

Recommended Posts

Hello, I want to load a font situed in a directory called 'data/'. the D3DXCreateFont function requires a font name, not a path. How can I do to load a font from a specific directory? Thanks in advance.

Share this post


Link to post
Share on other sites
The application freezes or simple quits when I call AddFontResource() which is documented to return an integer but when I want to check it I receive the compilator message 'void value not ignored as it ought to be'. Apparently, it returns nothing...

Share this post


Link to post
Share on other sites
The prototype in WinGDI.h definitely shows this function as returning an int. So, if you're compiler says it returns void, then you've got something wacked with your installation.

What compiler are you using?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this