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

Accessing the fonts of the pre-build Firmwares #26

Open
Fjordx opened this issue Nov 9, 2023 · 2 comments
Open

Accessing the fonts of the pre-build Firmwares #26

Fjordx opened this issue Nov 9, 2023 · 2 comments

Comments

@Fjordx
Copy link

Fjordx commented Nov 9, 2023

The readme states: The firmware directory contains pre-compiled firmware ... with ...frozen python font files.

Now, how do you access them?
I tried - import NotoSans_32 as font0 but get an import error : ImportError: no module named 'NotoSans_32'
I'm using the RP2 Firmware.

Btw: the example images in the readme of the vector fonts are broken

@russhughes
Copy link
Owner

russhughes commented Nov 9, 2023

I've uploaded the missing images. The fonts take a lot of flash so only some of the fonts are frozen into the firmware. You can see which fonts are frozen by typing help('modules') in the REPL. Additional python font modules can be uploaded to the file system as .py or .mpy files as needed.

@Fjordx
Copy link
Author

Fjordx commented Nov 12, 2023

Thanks a lot for the fast reply! I'll leave this issue open for future devs to stumble upon till the readme includes this info or till i generated a pull request. Hope that#s alright!

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

No branches or pull requests

2 participants