Font size

Can someone tell me how to change font size in C++?
When i run program,font is too small...
If you're outputting text to a terminal, you need to use the terminal's settings. For example, https://www.isunshare.com/windows-8/change-font-font-size-and-layout-in-cmd.html

c++ does not grok font. GUI programs do, and have libraries for it... to change the font in a windows program you need a font object and have to fill in a bunch of values (size, pitch, bold/italic etc junk).

assuming this is a windows console, you can change that yourself, just right click it and set the properties.

https://www.isunshare.com/windows-8/change-font-font-size-and-layout-in-cmd.html

always run by starting the console yourself, don't just double click the program, or you may have trouble keeping the font like you want it and controlling the program (redirect in and out of files, for one thing) that you can't do easily from double click or if you run from IDE (don't do that either).
Last edited on
Topic archived. No new replies allowed.