Thread: Size of text

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    11

    Size of text

    Is there anyway to increase the text?

    Example:

    Code:
    Cout << "BlahBlahBlah";
    I want the "BlahBlahBlah" to be like size 24.
    Last edited by DarkDarkDark; 08-02-2006 at 01:55 PM.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    So you mean like:
    Code:
    for(int i = 0;i < 6;++i)
      cout << "Blah";
    Right?
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    11
    wont that repeat blah 6 times? i want the size to increase.

  4. #4
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    Do you mean the size of the font in pixel height?

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    11

    reply

    Yes i think thats what i'm looking for

  6. #6
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    That does increase the size. Are you saying you'd like to append spaces to the end of "BlahBlahBlah" to make it take up 24 characters? Say what you mean.
    If you understand what you're doing, you're not learning anything.

  7. #7
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    You can't modify the font of text in a console application.
    If you understand what you're doing, you're not learning anything.

  8. #8
    Registered User
    Join Date
    Aug 2006
    Posts
    11
    like this blahblahblah

    the text is bigger, okay then thanks.

  9. #9
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    I don't think that's possible in a console application, easy on win32 though

  10. #10
    Registered User
    Join Date
    Aug 2006
    Posts
    11
    Okay thanks, dont no win32 yet.

  11. #11
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Yes. It is possible. You can interface with the console to produce several types of fonts and sizes. I don't know how to do it though. Its definitely non portable. console.h and windows.h are probably needed for windows based systems.

    But if what you want is to have on the same console session different fonts and sizes displayed at the same time, then you are in for a threat. You will need to enter graphics mode. Again, how this is done... I don't know.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  12. #12
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    I was assuming he only wanted a portion of text to be one size and the rest would be another size. I certainly wasn't going to try asking him to explain further
    If you understand what you're doing, you're not learning anything.

  13. #13
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    Quote Originally Posted by Mario F.
    Yes. It is possible. You can interface with the console to produce several types of fonts and sizes. I don't know how to do it though. Its definitely non portable. console.h and windows.h are probably needed for windows based systems.

    But if what you want is to have on the same console session different fonts and sizes displayed at the same time, then you are in for a threat. You will need to enter graphics mode. Again, how this is done... I don't know.
    Wow! What a wealth of info! I didn't know that, but now that I think about it it makes sense. I'm having visions of a program called 'Iris', which we used use in work to maintain till floats and whatnot in a small store i used work in, and I'm sure it was in gaudy colors with different size fonts.

  14. #14
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by twomers
    Wow! What a wealth of info!
    Getouttahere!

    If I knew how to do it... then I would strut some for you
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  15. #15
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273

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