What is OpenTypeFont class?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v10)  /  Re: What is OpenTypeFont class?

DynamicPDF CoreSuite for .NET (v10) Forum

 Mar 17 2020 3:42 AM
I embeded font that used OpenTypeFont class to pdf document.
But the font found in Adobe Reader's properties is not OTF.

this is my sample code.

string fontPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Fonts);
OpenTypeFont font = new OpenTypeFont(System.IO.Path.Combine(fontPath, "arial.ttf"));

Embeded TTF Font with OpenTypeFont class has seen as TTF font in acrobat professional.
How can I embed TTF font as OpenTypeFont?
 Mar 17 2020 12:04 PM
Posted by a ceTe Software moderator
Hello,

The OpenTypeFont is a class name in DynamicPDF Generator which is used to add a custom OTF or TTF font to a PDF. This will not convert a TTF to OTF. The font types will be added as is to the PDF. You can refer to documentation on the OpenTypeFont class here.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 12:37 PM.