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.
I'm not using @font-face in the CSS, but rather doing this:
font-family: "Proxima Nova Cn Rg", "Proxima Nova Cond", "Proxima Nova Condensed";
In the controller function that generates the pages, there is this code:
var targetDocument = CreateNewDoc(orientation, paperSize);
targetDocument.HtmlOptions.FontEmbed = true;
targetDocument.HtmlOptions.FontSubset = false;
targetDocument.HtmlOptions.FontSubstitute = false;
targetDocument.HtmlOptions.FontProtection = false;
targetDocument.Font = targetDocument.EmbedFont(Server.MapPath("\\Content\\fonts\\proxima-nova\\ProximaNova-Reg-webfont.ttf"));
targetDocument.Font = targetDocument.EmbedFont(Server.MapPath("\\Content\\fonts\\proxima-nova\\ProximaNova-Sbold-webfont.ttf"));
If the project is run locally, the fonts seem to work, but not on the server. The fonts are installed on the server. Is there anything we might be missing with the fonts or how we embed them? I looked at several different other questions on here regarding font embedding but none of them offered any solutions for our situation. I'm not sure what other information to provide here, but let me know what might be needed to answer my question and I'll find it.
Edit: I could have sworn I updated this... Apologies to the responders. Unfortunately I can not accept any of the answers as correct as we were never able to resolve the issue.