Thread: Text size?

  1. #1
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379

    Text size?

    I'm using borland c++ compiler, using windows xp professional.

    I'm trying to change text sizes... But umm... I have no idea how, or if its possible. Anyone have any idea?
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  2. #2
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    Is this a console or GUI project?
    To code is divine

  3. #3
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    Console project.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  4. #4
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    Depends, are you running Vista?
    Ah ha! No!
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    203
    Well console windows DO have font properties. All i can say is maybe look at GetCurrentConsoleFontEx and SetCurrentConsoleFontEx on MSDN.

    edit:
    Also look at CONSOLE_FONT_INFOEX. It has a COORD dwFontSize with X as width and Y as height (in pixels i think). There is also other things like UINT FontWeight which can be used to make the font bold.

    Not sure if any of this works as all i did was look in http://msdn.microsoft.com/library/de..._functions.asp

    edit:
    after looking at the MSDN entries, they seem to be new additions for Vista. Looks like everyone needs to go buy Vista so we can make console apps with custom fonts ;P
    Last edited by Syneris; 01-04-2006 at 09:38 PM.

  6. #6
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    I know that, but SetCurrentConsoleFontEx requires Windows Vista, as does CONSOLE_FONT_INFOEX thought not CONSOLE_FONT_INFO. Getting the font does you no good.
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char Handling, probably typical newbie stuff
    By Neolyth in forum C Programming
    Replies: 16
    Last Post: 06-21-2009, 04:05 AM
  2. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  3. How to Change Text File Font Size
    By space in forum Windows Programming
    Replies: 3
    Last Post: 08-07-2006, 11:42 PM
  4. Text size in C
    By adminravi in forum C Programming
    Replies: 16
    Last Post: 07-19-2006, 03:13 PM
  5. Changing text size in a program
    By RedTroja in forum C++ Programming
    Replies: 3
    Last Post: 10-12-2003, 03:53 AM