Dynamically changing the size of the font in a console window

This is a discussion on Dynamically changing the size of the font in a console window within the C Programming forums, part of the General Programming Boards category; For a project I'm working, we're trying to get the smallest possible font size in the Windows console window. I'm ...

  1. #1
    Registered User inequity's Avatar
    Join Date
    Nov 2010
    Location
    Seattle, Washington
    Posts
    59

    Dynamically changing the size of the font in a console window

    For a project I'm working, we're trying to get the smallest possible font size in the Windows console window.

    I'm pretty sure that this has something to do with the kernel, and might be operating system specific, but is there any way to get in there and set the font size of the console manually? IE 2x2 or 1x1 font

    I understand if nobody knows anything about this, it's weird and probably seems pointless. However if you can help, I'd appreciate it. Thanks.

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    612
    SetCurrentConsoleFontEx will change it. The lowest sized fonts you can get are the ones listed in the properties window, so about 4x6 for raster and 5 point for the other. Note that the console window scales by the font size, changing it won't change the fact that you can only have 80 characters on a line, and 25 lines before scrolling. Those dimensions are changed by SetConsoleScreenBufferSize and SetConsoleWindowInfo

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. changing font size
    By f6ff in forum C++ Programming
    Replies: 2
    Last Post: 06-12-2006, 04:41 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  3. changing font size
    By rajesh23 in forum Linux Programming
    Replies: 2
    Last Post: 03-03-2005, 04:51 PM
  4. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 05:10 AM
  5. Linux console window questions
    By GaPe in forum Linux Programming
    Replies: 1
    Last Post: 12-28-2002, 12:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21