We are using Proxima Nova fonts (specifically, Proxima Nova Condensed regular) in our MVC.NET project, but they will not embed properly in the PDF output. When looking at the PDF properties, I see 'ProximaNovaCond-Regular (Embedded)' listed, and the icon next to it looks like a page with a gray 'F' on it. I also see Arial Narrow and Arial Narrow, Bold listed with '(Embedded Subset)', and the document seems to be defaulting to these.
You can either have the fonts embedded using simply their name, or you can dynamically load them from file. You appear to be trying to do the latter, but that is not working. What I would do:. Check the path after Server.MapPath and that the file is actually there, and you have access to it from your app. As you say you have the fonts installed on the server, you could simply try using the full name of the font.
Make sure they actually are installed properly first and that you are using the correct name. For the first parameter of targetDocument.EmbedFont, you need to specify the font typeface, not the physical path to the font. TargetDocument.EmbedFont('Arial Regular'); To get the correct type face name, go to Control Panel All Control Panel Items Fonts in explorer. Find your font. You need to specify the font face, not the font family. For Arial, specify 'Arial Bold' or 'Arial Regular'.
You can check if your font is returned correctly by checking that the return value of EmbedFont is non zero.