Jump to content
  • Advertisement
Sign in to follow this  
GamerCon

Change DOS Font

This topic is 5165 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm working on an RPG/Adventure DOS game and want to use a custom font. What would I need to do in order to programaticaly set DOS's font when the program is run and to set it back to DOS's default properties when the program is closed?

Share this post


Link to post
Share on other sites
Advertisement
Is it an actual DOS program or a win32 console program? If it is the latter, I don't think you can (you'd have to instead make a fake console and simulate all the console stuff yourself). If it is a true DOS program, I have the interrupts required lying around somewhere and can dig them up for you.

Share this post


Link to post
Share on other sites
im not positive, the only command promt on my OS(WinXP) is cmd.exe

Im coding in C++ and compiling with DevC++(if that helps any)

Share this post


Link to post
Share on other sites
Sorry to say, but I think the compiler with Dev-C++ only makes windows console programs, which means you can't change the font. The best you could do would be to make a full windows program and make a window that looks like a console, and then you could draw whatever you want to it.

Share this post


Link to post
Share on other sites
hmm, maybe I could code something that moves the orriginal font file to a temp folder and replaces it with a diffrent font file with the same name?

Share this post


Link to post
Share on other sites
That would be a bad idea, because if your program crashed or was closed from control-alt-delete or anything like that, the person would be left with a strange console font.

Share this post


Link to post
Share on other sites
true but, thats no serious issue which couldnt be fixed with a readme.txt, faq and/or a loading screen which clearly states what to do if such a situation occured.

Plus I only want to change the extended fonts so it wouldnt be that big of a deal if the game was closed improperly.

Share this post


Link to post
Share on other sites
Quote:
Original post by flangazor
pdcurses.

gl hf
I just took a look into the source for that, and I found a 'get_font' and 'set_font' function, which change the font _SIZE_ but not the font itself. Also, both functions do nothing in the win32 version.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!