Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dafydd Owen 33 posts 173 karma points
    Mar 23, 2014 @ 11:36
    Dafydd Owen
    0

    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!

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Mar 25, 2014 @ 10:08
    Darren Ferguson
    100

    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.

  • Dafydd Owen 33 posts 173 karma points
    Mar 25, 2014 @ 10:12
    Dafydd Owen
    0

    Hi Darren,

    Thanks for clearing that up.

    Hopefully installating fonts on shared hosting will be allowed, we will have to find out!

    Regards,
    Dafydd 

Please Sign in or register to post replies

Write your reply to:

Draft