Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Increase Console Font size
-
Is it possible to increase the size of the fonts used in the console? I am using an iPad Pro and the standard fonts are pretty small, at least to me, I know in the edit I can change the fonts in settings but I did not see anything regarding the console, thanks
-
console.set_font
does what you're looking for. -
@Webmaster4o said:
console.set_font
does what you're looking for.Thank you, will this be a command I will do at the console bottom line? will this be a permanent even if I close Pythonista?
-
@OI no, it won't be permanent. What you can do to make it semi-permanent is to create a file in
site-packages
calledpythonista-startup.py
. This will be run every time you launch pythonista. If you put your font setting in this file, then your change will be more permanent. Of course, other scripts can still change this setting withconsole.set_font
-
@Webmaster4o said:
@OI no, it won't be permanent. What you can do to make it semi-permanent is to create a file in
site-packages
calledpythonista-startup.py
. This will be run every time you launch pythonista. If you put your font setting in this file, then your change will be more permanent. Of course, other scripts can still change this setting withconsole.set_font
Thanks, I was looking for the console.py file to look into the standard parameters for name and size, but did not find it, do you know where can I get that information, I need the default name and size parameters and what are the possible values,
-
@OI No, there's nothing like
console.get_font()
. There might have been someone with this question before, search the forums. I may be misremembering. -
-
thanks, I found the default font is Menlo-Regular 14pt, I have create the following script:
import console
console.set_font("Menlo-Regular", 18)It works fine if I execute the script myself, but if I save it in site-packages as pythonista-startup.py, nonetheless it doesn't work after I restart Pythonista, it always default to 14pt, are you sure that's the correct file name?
-
found it on the documentation is pythonista_startup.py, thanks a lot