Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for on disk fonts to terminalio #10208

Merged
merged 3 commits into from
Apr 1, 2025
Merged

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Mar 31, 2025

This allows the native terminal to use fonts that are too large for RAM. They may be too large if the language has many characters or emoji are supported as well.

This PR also improves TileGrid so it can support 16 bit values when needed.

tannewt added 3 commits March 28, 2025 15:54
This allows the terminal to use a font from the disk at
/fonts/terminal.lvfontbin for languages that need more
characters than we want to ship.

TileGrid now support 16bit indices as well.

Font files for use with it are generated by the GitHub actions
here:
https://github.com/adafruit/circuitpython-font-generator
@tannewt tannewt requested a review from dhalbert March 31, 2025 22:38
@tannewt tannewt added this to the 10.0.0 milestone Mar 31, 2025
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I did not test, but of course you did. The logic makes sense to me.

I see the zephyr has lvgl support, https://github.com/zephyrproject-rtos/lvgl. In the long run might we rely on that upstream code? I did not look at its functionality in detail.

@dhalbert dhalbert merged commit 92c121b into adafruit:main Apr 1, 2025
613 checks passed
@tannewt
Copy link
Member Author

tannewt commented Apr 1, 2025

In the long run might we rely on that upstream code?

Yup, I think so. We'll likely need to redo the API then though. We'll see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants