jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 177 forks source link

Provide mechanism for custom fonts on startup. #18

Open r-pufky opened 5 years ago

r-pufky commented 5 years ago

It would be great to enable the use of loading custom fonts when the image is stared. My thought is something like this:

This would enable end user custom fonts to be install simply by placing them in the correct location, ensuring it is enabled and restarting the docker container.

jlesage commented 5 years ago

From what I've learned, it's not really possible to offer an universal way to "select" the font to use. This highly depends on the implemented application. The way an application selects the font is not the same and depends in part on which framework it is based on: GTK, Qt, Java, etc. Also, some applications don't follow the "standard" way and have their own font selection mechanism.

r-pufky commented 5 years ago

Yup -- that is correct.

This just provides a mechanism for consumers of baseimage-gui to load fonts on the docker container's font cache for usage at start. The consumers of the image would be responsible for setting the font correctly in whatever they run on top of the baseimage, and where they load it from (font cache, or directly from the files themselves).