title: How to change console Font size in C++ using functions of windows.h?
body: <p>I want to change console font size, here is the code I wrote + my try to find the bug. </p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;windows.h&gt;
  #include&lt;conio.h&gt;
  
  int main()
  {
      HANDLE Hout=GetStdHandle(STD_OUTPUT_HANDLE);
      COORD fsize={8,8};
      CONSOLE_FONT_INFOEX Font;
      GetCurrentConsoleFontEx(Hout,0,&amp;Font);
  
      //My Code to check the problem...............................
      std::cout&lt;&lt;Font.dwFontSize.X&lt;&lt;' '&lt;&lt;Font.dwFontSize.Y;getch();
      //...........................................................
  
      Font.dwFontSize=fsize;
      SetCurrentConsoleFontEx(Hout,0,&amp;Font);
      std::cout&lt;&lt;"!Test Text!";
      getch();
      return 0;
  }
  </code></pre>
  
  <p>The bug is that the text is not changing to desired size and when I tried to check the problem by writing checking code, the output was,<br>
  <code>0 0</code><br>
  I cannot understand anything, maybe I am missing something.<br>
  I need Help with that b'cuz I did all this topic of HANDLES and windows-functions by myself with little help of internet.</p>