Forum Archive

Include more custom fonts

lukaskollmer

It'd be nice if Pythonista offered Apple's SF-Mono font in addition to the existing fonts.

Another font that'd be very well suited for Pythonista is FiraCode, which is a monospaced font with programming ligatures.
Since UITextView already supports ligatures, FiraCode would work fine in Pythonista.

Example of FiraCode:

cc @omz

scj643

Might be able to hack it in with objc_util Also one can install fonts system wide as well. Using a configuration payload.

lukaskollmer

Yes it is indeed possible to load a font from a .otf file at runtime (in fact, I implemented such a feature months ago using the ctypes module), but that's never as good as a proper first-party implementation.