What statement can I use to increase the character size of my output in Dev C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bessaacg
    New Member
    • Oct 2012
    • 1

    What statement can I use to increase the character size of my output in Dev C++

    e.g cout << "Hello world";

    I would like to increase the size of Hello wolrd on the output screen.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You will need a software library that contains functions that can do that. All basic C/C++ does is provide the barest minimum to get you atarted.

    You might consider an overload of operator<< where you can make those calls. I can't say which library you need since it varies by operating system.

    Do a little reserch to locate a suitable library. It's better than writing code from scratch.

    Comment

    • AsHtOn2
      New Member
      • Oct 2014
      • 2

      #3
      please explain it further..

      Comment

      • AsHtOn2
        New Member
        • Oct 2014
        • 2

        #4
        explain it further..did'nt get that

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          C++ does not support fonts. You will need a framework and a graphic operating system to do this.

          Like maybe using Windows Forms.

          Comment

          • iam_clint
            Recognized Expert Top Contributor
            • Jul 2006
            • 1207

            #6
            you can increase the font size of a console application like so
            Code:
            	PCONSOLE_FONT_INFOEX console_info = new CONSOLE_FONT_INFOEX;
            	console_info->cbSize = sizeof(CONSOLE_FONT_INFOEX);
            	GetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), false, console_info);
            	console_info->dwFontSize.X = 8; //default 8
            	console_info->dwFontSize.Y = 18; //default 12 
            	SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), false, console_info);
            This may not be what you are looking for but its how I interpreted the question.

            Comment

            Working...