Computer Science Canada

Font size with print?

Author:  OREO Speedwagon [ Mon Apr 11, 2011 12:11 pm ]
Post subject:  Font size with print?

Hello
my apologies for making so many threads in this forum >.>

I'd like to change the font size that the 'print' command uses - is this possible? I could change it once for every line, or it could be a uniform increase - it just needs to be larger. I've tried to Google for the answer, however all of the results seemed to require attachments for programming for cell phones. The Python documentation, too, doesn't seem to have my answer.

I'm using Python 3.1.

Author:  Tony [ Mon Apr 11, 2011 12:21 pm ]
Post subject:  RE:Font size with print?

doesn't print send text to STDOUT?

Author:  OREO Speedwagon [ Mon Apr 11, 2011 12:24 pm ]
Post subject:  Re: Font size with print?

Not entirely sure what you mean by that...? print("Hi") displays the word 'Hi' on a text window, it doesn't literally print it or anything.

Author:  Tony [ Mon Apr 11, 2011 12:27 pm ]
Post subject:  RE:Font size with print?

Yes, it does. http://docs.python.org/reference/simple_stmts.html#print
Quote:

print evaluates each expression in turn and writes the resulting object to standard output

If the standard output happens to be a terminal, you can configure that to have larger fonts; but that's up to an individual user.

Author:  chrisbrown [ Mon Apr 11, 2011 1:39 pm ]
Post subject:  RE:Font size with print?

I think he means print in the ink-and-paper sense.

print doesn't support that kind of thing. If it's absolutely essential (and is it really?), you'll need a graphics/UI library like PyGame or PyGTK.

Author:  OREO Speedwagon [ Tue Apr 12, 2011 10:41 am ]
Post subject:  Re: Font size with print?

Yes, I meant print like printing with a printer...

but thank you, Tony, I didn't actually know that the Windows Command Prompt could have the font resized... >3>


: