Open r-pufky opened 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.
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).
It would be great to enable the use of loading custom fonts when the image is stared. My thought is something like this:
ENABLE_CUSTOM_FONTS=1
fc-cache -f -v -y /config/baseimage/fonts
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.