Adding code behind into published site to include a server font
Hello,
We currently have a site running the PDF Creator package which is working great.
One issue we have encountered stops us from using custom fonts that are not installed on our hosting.
The solution we have been trying to implement includes creating a PrivateFontCollection using c# and importing that into the PDF templates. e.g. http://bobpowell.net/embedfonts.aspx
The idea of loading the font into the memory makes sense but how can this be added into Umbraco?
Unfortunately we do not have access to the visual studio files for the created site.
Adding code behind into published site to include a server font
Hello,
We currently have a site running the PDF Creator package which is working great.
One issue we have encountered stops us from using custom fonts that are not installed on our hosting.
The solution we have been trying to implement includes creating a PrivateFontCollection using c# and importing that into the PDF templates. e.g. http://bobpowell.net/embedfonts.aspx
The idea of loading the font into the memory makes sense but how can this be added into Umbraco?
Unfortunately we do not have access to the visual studio files for the created site.
Any help would be greatly appreciated.
Dafydd
Even if you don't have acces to the VS files you could create a new project and add that dll to the Umbraco bin folder.
You can probably register your code in one of the examples on the this page: http://our.umbraco.org/documentation/Reference/Events/application-startup
Jeroen
is working on a reply...