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.
Pythonista app font size
-
Hi, do you know some ways to decrease the fonts size of Pythonista (no font of scripts in editor but font of filenames, folder names, etc...)?
Thanks -
The system-wide font size setting (which you can change in the iOS Settings app) also affects the size of some text in Pythonista, including the file list. Many parts of Pythonista aren't affected though (such as the settings screen and some other table views) and the behavior might be different in the App Store version and the beta.
-
See this comment. Quote:
Yeah, I’m aware that I should support this eventually, but I’d like to do it in a somewhat consistent manner, not just in some random part of the app. That’s quite a bit of work, as I’d have to look at pretty much every piece of UI, and it’s unlikely that I’ll get to it for this release.
support this = Dynamic Type. Will probably be added, but not this release, maybe not even in the next release, ... It's quite a big amount of work to support this everywhere.
-
@dgelessus and @zrzka Thank you all for the info.
Regards. -
Hi. For people having version 3.2 of Pythonista (thank you @omz!): in the new version can user set font size in Pythonista console? In version 3.1 the only way to change some text size is to change the font size in iOS setting, as @dgelessus and @zrzka suggested here.
But I can't see anyway to change font size of output text in console.Thanks
Bye -
@Matteo, in the site-packages dir I have a file called 'pythonista_startup.py'. The contents are below. You can see where I set the console font.
I do some other things I also like. In the dir 'site-packages-3', I have another 'pythonista_startup.py' which is where BlackMamba is run from.# coding: utf-8 # exit(0) # Just incase debugging, want to by pass the startup code import sys import os import console from plistlib import readPlist from objc_util import * from os.path import expanduser home = expanduser("~") + '/' print('*' * 40) print(' My Startup Script') print('*' * 40) UIScreen = ObjCClass('UIScreen') screen = UIScreen.mainScreen() screen.setBrightness_(0.65) print('Screen Brightness:', '{:f}'.format(screen.brightness())) UIView.beginAnimations_(None) UIView.setAnimationDuration_(0) print('Switching Off Animations') fnt = ('Menlo', 22) console.set_font(*fnt) print('Font set to {}-{}'.format(*fnt)) def pyst_version_str(): plist = readPlist(os.path.abspath(os.path.join(sys.executable, '..', 'Info.plist'))) return plist['CFBundleShortVersionString'] print(('Pythonista Version:{}'.format(pyst_version_str())))
-
@Phuket2 Thank you! I will test your script in the next days, objc_util is a new world inside Pythonista that I didn't want to learn, but in order to change some Pythonista setting, I will start to learn something about it thank to your script.
Regards
ByeEDIT: I've seen that the size of text in console can be changed with 'console' module, no need to wake up objc_util. It works very well! Thanks again
-
@Matteo ,hey. I am the same as you I stay away from objc stuff. It's a whole other learning curve for me that I dont really want to take on. I am happy merrily going on just trying to learn Python. The code in my pythonista_startup.py come from either @omz or @JonB I think. I didn't come up with any of it.
But it just seems to work and i normally never touch it :)