Python Forum
Change Text Size in Console?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Text Size in Console?
#1
Hello, everyone!

On Windows 10, I am creating a Python script, but the text output in the console is too tiny. I am aware that I can right-click on it, go to Properties, then Font, then change the size and colour, etc, but I'm going to be distributing this script, and so I want it to be done automatically.

Is there a way to change the console text size using Python?

If there is not, is there any way to set the font size to something, then have it be the same for any other computer (on Windows)?
Reply
#2
why would you want to mess with other people's settings of their terminal?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(Jun-02-2020, 08:07 PM)buran Wrote: why would you want to mess with other people's settings of their terminal?

I am changing the font size so my output is readable.
Reply
#4
If user is not happy with the font or font size of their terminal output - they will change it. i.e. that is not a GUI made by you. In terminal it will print using the user's settings, e.g. my terminal font and font size are perfectly fine for me. If it was your GUI - then it's fine to set font/size, etc. but please don't mess with my/user's system settings
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
(Jun-02-2020, 08:51 PM)buran Wrote: If user is not happy with the font or font size of their terminal output - they will change it. i.e. that is not a GUI made by you. In terminal it will print using the user's settings, e.g. my terminal font and font size are perfectly fine for me. If it was your GUI - then it's fine to set font/size, etc. but please don't mess with my/user's system settings

Most users I will be distributing to will not be tech-savvy, and may have never opened a terminal in their life.
They will open the distribution, see the size of the text, and won't use it. I doubt most people will know how to change the font size, and I doubt more that they would learn how to. Most would just think that's what it looks like.

I may add that my distribution is an executable? It doesn't mess with the computer's settings, only it's own.

It is not a GUI made by me, but I add elements such as colours, bold and underlined letters, ASCII art, etc. An inappropriate text size would, more or less, ruin the experience.

So, please, may you answer the question I had originally?

Thank you.
Reply
#6
(Jun-03-2020, 07:38 AM)ShakeyPakey Wrote: So, please, may you answer the question I had originally?
Nope, I don't like when developers think they know better than the users.

In addition - you assume certain terminal/shell program, while it may defer if user has/use something different - e.g. cmd vs cmder vs powershell, etc. If you want to enforce/ensure certain look and feel - make a GUI/web app
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#7
(Jun-03-2020, 07:49 AM)buran Wrote:
(Jun-03-2020, 07:38 AM)ShakeyPakey Wrote: So, please, may you answer the question I had originally?
Nope, I don't like when developers think they know better than the users

I am trying to make what my user experiences better and high-quality.

This is what you are saying: for example, I could be making a videogame with missions, but I don't develop one mission. I say "That's fine, the players can make mods to create that mission."
  • The vast majority of players are expected not to know coding, much less videogame modding.
  • I, the developer, has not mentioned anything about this. Players don't even know the mission exists.
  • Players who know about the mission are familiar with coding and have spent time to look through the game code, which is VERY rare.

Imagine if that was, instead, the graphics of the videogame. Graphics are automatically set to the lowest setting, and the only way to change them is in the code of the game.

Would you accept that as a product?

It's the same for my issue, even more so because text readability is the most important factor in user experience.

I am no longer asking for your answer, but @buran, in the future, please do not ask a series of exhausting questions, not helping the poster in any way, only to then refuse answering because you do not like the poster due to some petty reason. You might let down a new programmer.

Thank you.
Reply
#8
Quote:I am trying to make what my user experiences better and high-quality.

You're wrong. You don't know my preferences nor the user preferences.
The settings of the terminal are user defined.

If you program for people who never used a console, you should better program a GUI or a Web application.
The terminal is for experienced users.

PS: I guess there is a way to modify users terminal settings. Maybe with ctypes or win32. Since Windows 10 we've more than one terminal.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#9
(Jun-03-2020, 08:18 AM)ShakeyPakey Wrote: I am no longer asking for your answer, but @buran, in the future, please do not ask a series of exhausting questions, not helping the poster in any way, only to then refuse answering because you do not like the poster due to some petty reason. You might let down a new programmer.

In fact I am trying to prevent an obviously new programmer from making mistake by assuming they know better what user wants. As I said - if you want to control feel and look - make a GUI/web app. That's exactly what your example about the graphics of a video game is. Using a CLI/terminal - you accept what your user preferences are, although some small modifications like color are acceptable (e.g. using ANSI control sequences).
In your original post you say the output in console is too tiny. That is subjective - I (and probably huge part of the population) find the default settings just fine. However you come and assume it's too tiny for all, just because you "think/feel" so. Finally, you ask how to change the settings of external program - the terminal/shell app used by the user, assuming incorrectly there is only one possible app they can use (cmd, right?). Note these are not settings in your program, but settings in another one. However there are many terminal/shell alternatives and you cannot account for all of them.
So, again and I stop here - make a GUI/web app if you want certain feel/look, don't mess with user preferences.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Change Text Size in Console? CodingKid 1 334 Jul-20-2021, 02:47 PM
Last Post: deanhystad
  change a text file Blue Dog 5 1,046 Aug-04-2020, 05:51 AM
Last Post: DeaD_EyE
  size of set vs size of dict zweb 0 1,009 Oct-11-2019, 01:32 AM
Last Post: zweb
  Save console output to text file (like a log) koticphreak 9 16,218 Jun-02-2019, 07:45 PM
Last Post: snippsat
  Change Text Color Output in Python bluethundr 2 6,837 Mar-06-2019, 10:23 PM
Last Post: bluethundr
  How to format text to modify itself for different console sizes. FWendeburg 0 738 Feb-18-2019, 06:43 PM
Last Post: FWendeburg
  Is there a way to detect the text font, size and color from an image in python? Maia07 2 5,022 Aug-23-2018, 01:16 PM
Last Post: Maia07
  How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file? JohnJSal 6 17,445 Jun-19-2018, 03:43 PM
Last Post: JohnJSal
  Change on-screen text Panda 5 2,020 Jun-08-2018, 03:19 PM
Last Post: Grok_It
  CSV file created is huge in size. How to reduce the size? pramoddsrb 0 7,893 Apr-26-2018, 12:38 AM
Last Post: pramoddsrb

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020