C++ Programming Question

ares32585

Member
Oct 27, 2000
79
0
0
In a Win32 Console Application can you use different sized fonts? If so, what command must I use to change the font at compile-time?
 

Mongoose

Junior Member
Dec 17, 2000
2
0
0
Hi,

AFAIK a console application is visually pretty much a DOS app, ie. it doesn't use any of the Windows GDI, so no forms, graphics, etc.

You can change the font size in a DOS prompt in Windows (go to Properties, Font tab), so you can change this for the console app's PIF probably, but programmatically I don't know, I wouldn't think so.

Why would you want to anyway? It goes against what a console app is...
 

Moohooya

Senior member
Oct 10, 1999
677
0
0
All I can think of is setting the window font. Call GetConsoleWindow() to get the HWND of the console.

Moohoo