Font size

Apr 17, 2019 at 9:58pm
Can someone tell me how to change font size in C++?
When i run program,font is too small...
Apr 17, 2019 at 10:00pm
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

Apr 17, 2019 at 10:01pm
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 Apr 17, 2019 at 10:03pm
Topic archived. No new replies allowed.