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 24, 2014 @ 19:59
    Dafydd Owen
    0

    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

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 25, 2014 @ 12:09
    Jeroen Breuer
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft