So I have been attempting to add some custom fonts to a generated PDF but I have had no success.
I have attempted to accomplish this by adding a font into the web application using the PrivateFontCollection methods for C#. I could not get this to work.
This is down to me not knowing enough about C# and the compiling process because even if the code I had was correct, how do I know Umbraco can see that code? and that it's working?
I have spent hours looking at examples for c# snippets to add a font into an application, this seems popular http://bobpowell.net/embedfonts.aspx but how do it get that into Umbraco?
Font installation problems
Hello,
So I have been attempting to add some custom fonts to a generated PDF but I have had no success.
I have attempted to accomplish this by adding a font into the web application using the PrivateFontCollection methods for C#. I could not get this to work.
This is down to me not knowing enough about C# and the compiling process because even if the code I had was correct, how do I know Umbraco can see that code? and that it's working?
I have spent hours looking at examples for c# snippets to add a font into an application, this seems popular http://bobpowell.net/embedfonts.aspx but how do it get that into Umbraco?
I also looked at the documentation at the Ibex website suggested by Darren but this also made little sense to me unfortunately (from this post > http://our.umbraco.org/projects/website-utilities/pdf-creator/misc/31108-Font-embedding)
Thanks!
Hi Dafydd,
PDF creator uses fonts that are installed on the server. You can't embed them through code. So the font needs to be installed on the server.
Thanks.
Hi Darren,
Thanks for clearing that up.
Hopefully installating fonts on shared hosting will be allowed, we will have to find out!
Regards,
Dafydd
is working on a reply...