Replies: 3 comments 1 reply
-
The REPL font is currently fixed to an 8x12 pixel font defined in Other than changing the font data per character in ASCII, we'd also want to change the FONT_HEIGHT and FONT_WIDTH defines at runtime. |
Beta Was this translation helpful? Give feedback.
-
It seems as though we'd want to use the u8 fonts in the REPL rather than hard-coding the existing small font, maybe - and beyond that, it would be super cool to be able to change the font at runtime, yes. I know Pimoroni are doing some interesting work in this space on top of MicroPython with their new PicoVector library and support for Alright Fonts, but I don't think the performance is too great yet. Thanks, I might look into building with a more dense font specifically for the T-Deck, although I also imagine I'll get interested in the desktop and actual Tulip with screen at some stage... |
Beta Was this translation helpful? Give feedback.
-
For those not on Discord, we just added support for two REPL fonts -- the default 8x12 one, and a smaller 6x8 one. It's a compile time option for all versions of Tulip. See the flashing / desktop / t-deck pages for more detail on how to apply it. (Small is default on T-Deck.) If you want to load in your own fonts: what i did was load a ttf from https://int10h.org/oldschool-pc-fonts/fontlist/font?portfolio_6x8 into this app https://lvgl.io/tools/font_conv_v5_3 , loaded that into |
Beta Was this translation helpful? Give feedback.
-
I'm currently using the T-Deck port.
It would be pretty helpful if I could have the REPL use a font that would provide at least a little more text density for the screen. I note that there's a
fonts.py
example.Where would I look to modify the code for the T-Deck port to use one of the other typeface options in the REPL - or is that non-trivial?
Beta Was this translation helpful? Give feedback.
All reactions