I want to use different fonts when exporting graphs with dot, but I have not managed to correctly use the DOT_FONTPATH configuration (I suspect it is broken due to fontconfig use in newer versions of graphviz). So, it is necessary to install custom fonts system-wide in order to generate graphs with them.
The solution I took is to create an additional argument in the configuration of the action, allowing users to specify alpine font packages to be installed and then used by dot. Letting users install arbitrary packages is not the smartest idea in terms of security concerns, but it may not be a major problem in our case.
Hello everyone
I want to use different fonts when exporting graphs with dot, but I have not managed to correctly use the
DOT_FONTPATH
configuration (I suspect it is broken due to fontconfig use in newer versions of graphviz). So, it is necessary to install custom fonts system-wide in order to generate graphs with them.The solution I took is to create an additional argument in the configuration of the action, allowing users to specify alpine font packages to be installed and then used by dot. Letting users install arbitrary packages is not the smartest idea in terms of security concerns, but it may not be a major problem in our case.
With this modification I was able to install Fira Code package for Alpine and generate graphs with it