Skip to content

Comments

Dynamic font loading#584

Open
RobinWts wants to merge 3 commits intofatihak:mainfrom
RobinWts:clean_DynamicFontLoading
Open

Dynamic font loading#584
RobinWts wants to merge 3 commits intofatihak:mainfrom
RobinWts:clean_DynamicFontLoading

Conversation

@RobinWts
Copy link

@RobinWts RobinWts commented Feb 9, 2026

This introduces dynamic font loading to the InkyPi core. For full description see: /docs/fonts.md.

It maintains full backward compatibility still using the hardcoded fonts and they keep prioity even when dynamic loading finds them somwhere else with the same name.

It makes all fonts available for everyone and includes fonts that come with installed plugins.

It makes it easy for plugins to bring their own fonts without needing to modify core files.
(without the need to modify plugin mechanism, it just scans all plugins for font dirs and includes them)

It scans for fonts the first time they are requested and keeps them available for rendering (base plugin) and settings.

The internal API remains unchanged, so nothing else needs to be updated.

It uses fonttools to extract meta data.

It comes with extensive fall back and overwrite logic to be robust and flexible.

It's easy to use: just drop fonts in the fonts dir or your plugin's fonts dir, restart the service and be done - no further code changes required.

All in all it makes developing plugins easier and InkyPi more 3rd-party-plugin-friendly.

@RobinWts RobinWts force-pushed the clean_DynamicFontLoading branch from e88a3ab to 04741c1 Compare February 13, 2026 11:08
@RobinWts
Copy link
Author

For info: I force pushed this, to sync it with the requirements bump from 13th Feb 26 since I changed those files as well and removed one merge commit I accindently included.

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.

1 participant