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.
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
#10
Um, can you tell me how I need it for ANSI art So I can dynamically change the text size for images and return it to the users preferences for text so I can have images and text the correct size so the text is big/small (user preference) and the Image characters small so it fits correctly?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ANSI not working for change of text colors BliepMonster 10 3,245 Nov-10-2022, 09:28 AM
Last Post: BliepMonster
  find some word in text list file and a bit change to them RolanRoll 3 1,482 Jun-27-2022, 01:36 AM
Last Post: RolanRoll
  [split] Change Text Size in Console? CodingKid 1 1,847 Jul-20-2021, 02:47 PM
Last Post: deanhystad
  change a text file Blue Dog 5 2,684 Aug-04-2020, 05:51 AM
Last Post: DeaD_EyE
  size of set vs size of dict zweb 0 2,116 Oct-11-2019, 01:32 AM
Last Post: zweb
  Save console output to text file (like a log) koticphreak 9 29,103 Jun-02-2019, 07:45 PM
Last Post: snippsat
  Change Text Color Output in Python bluethundr 2 8,667 Mar-06-2019, 10:23 PM
Last Post: bluethundr
  How to format text to modify itself for different console sizes. FWendeburg 0 1,568 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 8,578 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 23,958 Jun-19-2018, 03:43 PM
Last Post: JohnJSal

Forum Jump:

User Panel Messages

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