PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Using fonts from application folder http://forum.pdfsharp.com/viewtopic.php?f=2&t=4498 |
Page 1 of 1 |
Author: | andrus [ Mon Oct 23, 2023 11:29 am ] |
Post subject: | Using fonts from application folder |
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 https://github.com/empira/PDFsharp/blob ... 41-L195C41 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 ? |
Author: | Thomas Hoevel [ Mon Oct 23, 2023 11:53 am ] |
Post subject: | Re: Using fonts from application folder |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |