ASP.NET MVC application has fonts in ots wwwroot/fonts subfolder.
How to force NewFontResolver to use fors from this directory in both Linux and windows?
In Linux NewFontResolver searches also directory sptecified in FONTCONFIG_PATH environment variable
but this requires setting environment externally and does not work in windows.
How to add additional font directory from application so so that this or only this directory is also searched ?
Implement your own IFontResolver
.
Maybe copy NewFontResolver and make all the changes you need.
Might be better to write your own IFontResolver
that reads font files from app folder. Or from assembly resources.